From c62805ae570806935120a9c950b08d32074a17e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Mon, 1 Feb 2021 23:44:52 +0000 Subject: [PATCH] Slightly increase DOM max depth threshold --- lib/metadata/policies.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/metadata/policies.js b/lib/metadata/policies.js index 8c5d380..de6086a 100644 --- a/lib/metadata/policies.js +++ b/lib/metadata/policies.js @@ -15,8 +15,8 @@ var policies = { "tool": "phantomas", "label": "DOM max depth", "message": "

A deep DOM makes the CSS matching with DOM elements difficult.

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.

", - "isOkThreshold": 14, - "isBadThreshold": 24, + "isOkThreshold": 15, + "isBadThreshold": 25, "isAbnormalThreshold": 32, "hasOffenders": true, "offendersTransformFn": function(offenders) {