|
@@ -367,6 +367,30 @@ var policies = {
|
|
|
"isBadThreshold": 20,
|
|
|
"isAbnormalThreshold": 40
|
|
|
},
|
|
|
+ "smallJsFiles": {
|
|
|
+ "tool": "phantomas",
|
|
|
+ "label": "Small JS files",
|
|
|
+ "message": "<p>Number of JS assets smaller than 2 KB that could probably be inlined or merged.</p>",
|
|
|
+ "isOkThreshold": 2,
|
|
|
+ "isBadThreshold": 10,
|
|
|
+ "isAbnormalThreshold": 16
|
|
|
+ },
|
|
|
+ "smallCssFiles": {
|
|
|
+ "tool": "phantomas",
|
|
|
+ "label": "Small CSS files",
|
|
|
+ "message": "<p>Number of CSS assets smaller than 2 KB that could probably be inlined or merged.</p>",
|
|
|
+ "isOkThreshold": 0,
|
|
|
+ "isBadThreshold": 8,
|
|
|
+ "isAbnormalThreshold": 12
|
|
|
+ },
|
|
|
+ "smallImages": {
|
|
|
+ "tool": "phantomas",
|
|
|
+ "label": "Small images",
|
|
|
+ "message": "<p>Images smaller than 2 KB that could be base64 encoded or merged into a sprite.</p>",
|
|
|
+ "isOkThreshold": 2,
|
|
|
+ "isBadThreshold": 17,
|
|
|
+ "isAbnormalThreshold": 30
|
|
|
+ },
|
|
|
"notFound": {
|
|
|
"tool": "phantomas",
|
|
|
"label": "404 not found",
|