Browse Source

Slightly increase DOM max depth threshold

Gaël Métais 4 năm trước cách đây
mục cha
commit
c62805ae57
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      lib/metadata/policies.js

+ 2 - 2
lib/metadata/policies.js

@@ -15,8 +15,8 @@ var policies = {
         "tool": "phantomas",
         "tool": "phantomas",
         "label": "DOM max depth",
         "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>",
         "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,
         "isAbnormalThreshold": 32,
         "hasOffenders": true,
         "hasOffenders": true,
         "offendersTransformFn": function(offenders) {
         "offendersTransformFn": function(offenders) {