Slightly increase DOM max depth threshold

This commit is contained in:
Gaël Métais
2021-02-01 23:44:52 +00:00
parent acb1b72036
commit c62805ae57
+2 -2
View File
@@ -15,8 +15,8 @@ var policies = {
"tool": "phantomas",
"label": "DOM max depth",
"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": 14,
"isBadThreshold": 24,
"isOkThreshold": 15,
"isBadThreshold": 25,
"isAbnormalThreshold": 32,
"hasOffenders": true,
"offendersTransformFn": function(offenders) {