Adapt Oversized Images detection to our new screen resolutions

This commit is contained in:
Gaël Métais
2020-10-04 13:23:43 +02:00
parent f62e9baa4a
commit 4287f60ab3
3 changed files with 14 additions and 25 deletions
+1 -1
View File
@@ -803,7 +803,7 @@ var policies = {
"imagesTooLarge": {
"tool": "redownload",
"label": "Oversized images",
"message": "<p>This is the number of images with a width >800px on mobile or >1500px on desktop. Try reducing their size.</p><p>Please ignore if the file is used as a sprite.</p><p>Please note that Yellow Lab Tools' engine (PhantomJS) is not compatible with image srcset (unless you use a polyfill). This can lead to incorrect detection.</p>",
"message": "<p>This is the number of images with a width >1200px on mobile, >1800px on tablet, >2400 on desktop, >3200px on HD desktop. Try reducing their size.</p><p>Please ignore if the file is used as a sprite.</p>",
"isOkThreshold": 0,
"isBadThreshold": 5,
"isAbnormalThreshold": 10,