diff --git a/front/src/css/rule.css b/front/src/css/rule.css index ba01a54..508d3b0 100644 --- a/front/src/css/rule.css +++ b/front/src/css/rule.css @@ -237,7 +237,7 @@ margin-top: 0.5em; } .smallPreview { - max-height: 1.5em; + max-height: 1.6em; max-width: 4em; border: 1px solid #000; margin-top: 0.2em; diff --git a/front/src/less/rule.less b/front/src/less/rule.less index 18c6310..9cf165e 100644 --- a/front/src/less/rule.less +++ b/front/src/less/rule.less @@ -262,7 +262,7 @@ } .smallPreview { - max-height: 1.5em; + max-height: 1.6em; max-width: 4em; border: 1px solid #000; margin-top: 0.2em; diff --git a/front/src/views/rule.html b/front/src/views/rule.html index 553bd73..663be94 100644 --- a/front/src/views/rule.html +++ b/front/src/views/rule.html @@ -137,8 +137,9 @@ -
- +
+ +
diff --git a/lib/metadata/policies.js b/lib/metadata/policies.js index 5cdc5f6..35ea13a 100644 --- a/lib/metadata/policies.js +++ b/lib/metadata/policies.js @@ -910,6 +910,15 @@ var policies = { "isAbnormalThreshold": 50, "hasOffenders": true }, + "lazyLoadableImagesBelowTheFold": { + "tool": "phantomas", + "label": "Not lazyloaded images", + "message": "

This is the number of images displayed below the fold that could be lazy-loaded. This is an excellent way to accelerate the loading time of an heavy page.

I recommend using this lazyloader.

", + "isOkThreshold": 1, + "isBadThreshold": 12, + "isAbnormalThreshold": 30, + "hasOffenders": true + }, "notFound": { "tool": "phantomas", "label": "404 not found", diff --git a/lib/metadata/scoreProfileGeneric.json b/lib/metadata/scoreProfileGeneric.json index 24f29e8..2a18c37 100644 --- a/lib/metadata/scoreProfileGeneric.json +++ b/lib/metadata/scoreProfileGeneric.json @@ -85,7 +85,8 @@ "domains": 3, "notFound": 3, "multipleRequests": 2, - "smallRequests": 1 + "smallRequests": 1, + "lazyLoadableImagesBelowTheFold": 2 } }, "serverConfig": {