|
@@ -6,8 +6,8 @@ var policies = {
|
|
"label": "DOM elements count",
|
|
"label": "DOM elements count",
|
|
"message": "<p>A high number of DOM elements means a lot of work for the browser to render the page.</p><p>It also slows down JavaScript DOM queries, as there are more elements to search through.</p>",
|
|
"message": "<p>A high number of DOM elements means a lot of work for the browser to render the page.</p><p>It also slows down JavaScript DOM queries, as there are more elements to search through.</p>",
|
|
"isOkThreshold": 1000,
|
|
"isOkThreshold": 1000,
|
|
- "isBadThreshold": 3000,
|
|
|
|
- "isAbnormalThreshold": 5000
|
|
|
|
|
|
+ "isBadThreshold": 2500,
|
|
|
|
+ "isAbnormalThreshold": 4000
|
|
},
|
|
},
|
|
"DOMelementMaxDepth": {
|
|
"DOMelementMaxDepth": {
|
|
"tool": "phantomas",
|
|
"tool": "phantomas",
|
|
@@ -15,7 +15,7 @@ var policies = {
|
|
"message": "<p>A deep DOM makes the CSS matching with DOM elements difficult.</p><p>It also slows down JavaScript modifications to the DOM because changing the dimensions of an element makes the browser re-calculate the dimensions of it's parents. Same thing for JavaScript events, that bubble up to the document root.</p>",
|
|
"message": "<p>A deep DOM makes the CSS matching with DOM elements difficult.</p><p>It also slows down JavaScript modifications to the DOM because changing the dimensions of an element makes the browser re-calculate the dimensions of it's parents. Same thing for JavaScript events, that bubble up to the document root.</p>",
|
|
"isOkThreshold": 10,
|
|
"isOkThreshold": 10,
|
|
"isBadThreshold": 20,
|
|
"isBadThreshold": 20,
|
|
- "isAbnormalThreshold": 30
|
|
|
|
|
|
+ "isAbnormalThreshold": 28
|
|
},
|
|
},
|
|
"iframesCount": {
|
|
"iframesCount": {
|
|
"tool": "phantomas",
|
|
"tool": "phantomas",
|