|
@@ -538,7 +538,7 @@ var policies = {
|
|
|
"message": "<p>It can be useful, but only as a last resort. It is a bad practice because it overrides the normal cascading logic. The more you use !important, the more you need it again to over-override. This conducts to a poor maintainability.</p>",
|
|
|
"isOkThreshold": 0,
|
|
|
"isBadThreshold": 200,
|
|
|
- "isAbnormalThreshold": 500,
|
|
|
+ "isAbnormalThreshold": 1000,
|
|
|
"hasOffenders": true,
|
|
|
"offendersTransformFn": function(offenders) {
|
|
|
var parsedOffenders = offenders.map(function(offender) {
|
|
@@ -757,8 +757,8 @@ var policies = {
|
|
|
},
|
|
|
"compression": {
|
|
|
"tool": "redownload",
|
|
|
- "label": "Brotli compression",
|
|
|
- "message": "<p>Measures the number of bytes that could be saved by compressing textual files. Some files listed below might not be compressed at all, some might be already compressed with Gzip but would become even lighter with Brotli.</p><p>All major server systems are now compatible with Brotli.</p><p>Note that compressing small files (< 1 KB) is arguable, and that some assets such as images should not be compressed as it is already included in their format. <a href=\"https://gist.github.com/gmetais/971ce13a1fbeebd88445\" target=\"_blank\">Here</a> is a list of Content-Types that should be compressed.</p>",
|
|
|
+ "label": "Gzip/Brotli compression",
|
|
|
+ "message": "<p>Measures the number of bytes that could be saved by compressing textual files. Some files listed below might not be compressed at all, some might be already compressed with Gzip but would become even lighter with Brotli.</p><p>All major server systems are now compatible with Brotli.</p><p>Note that compressing small files (< 1 KB) is arguable, and that some assets such as images should not be compressed as it is already included in their format. <a href=\"https://letstalkaboutwebperf.com/en/gzip-brotli-server-config/\" target=\"_blank\">Here</a> is a list of MIME types that should be compressed.</p>",
|
|
|
"isOkThreshold": 20480,
|
|
|
"isBadThreshold": 204800,
|
|
|
"isAbnormalThreshold": 409600,
|
|
@@ -875,7 +875,7 @@ var policies = {
|
|
|
return offenders;
|
|
|
}
|
|
|
},
|
|
|
- /*"unusedUnicodeRanges": {
|
|
|
+ "unusedUnicodeRanges": {
|
|
|
"tool": "redownload",
|
|
|
"label": "Unused Unicode ranges",
|
|
|
"message": "<p>This metric counts the number of unused Unicode ranges inside each font. For example, one font could include Cyrillic glyphs but none of them are used on the page.</p><p>It also reveals the number of ligatures (letters that are represented differently when close to each other) and hidden chars (glyphs not linked to the unicode system that can't be displayed on the web).</p><p>Because of technical limitations, Yellow Lab Tools checks each font against the glyphs of the entire page. As a result, estimated use is >= to reality. For example, if you read that 10 glyphs are \"possibly used\", it means that these 10 glyphs are used on the page but nothing guaranties that they are displayed using this font.</p><p>Tools such as <a href=\"https://www.fontsquirrel.com/tools/webfont-generator\" target=\"_blank\">Font Squirrel</a> can remove some unicode ranges from a font.</p><p>In the case of an icon font, make sure you only keep the icons that are used on the website and to remove the others. Several tools are able to extract SVG images from a font, then some other tools can generate a font from the SVGs you want to keep.</p>",
|
|
@@ -886,7 +886,7 @@ var policies = {
|
|
|
"offendersTransformFn": function(offenders) {
|
|
|
return offenders;
|
|
|
}
|
|
|
- },*/
|
|
|
+ },
|
|
|
"nonWoff2Fonts": {
|
|
|
"tool": "redownload",
|
|
|
"label": "WOFF 2",
|