diff --git a/front/src/views/dashboard.html b/front/src/views/dashboard.html index cdce76d..e38ce19 100644 --- a/front/src/views/dashboard.html +++ b/front/src/views/dashboard.html @@ -43,7 +43,7 @@
This is the number of milliseconds spent by the browser on JavaScript execution during page load.
For more details, try using the performance tab in Chrome DevTools. It is a bit complicated at first sight, but you'll be able to analyze exactly where this execution time is spent.
", + "isOkThreshold": 500, + "isBadThreshold": 2000, + "isAbnormalThreshold": 4000, + "hasOffenders": false, + "unit": 'ms' + }, "DOMaccesses": { "tool": "domAccessAgregator", "label": "DOM access", diff --git a/lib/metadata/scoreProfileGeneric.json b/lib/metadata/scoreProfileGeneric.json index 3131fef..3fbbe03 100644 --- a/lib/metadata/scoreProfileGeneric.json +++ b/lib/metadata/scoreProfileGeneric.json @@ -13,7 +13,7 @@ "requests": { "label": "Requests", "policies": { - "totalRequests": 5, + "totalRequests": 2, "domains": 3, "notFound": 3, "identicalFiles": 2, @@ -35,7 +35,8 @@ "javascriptComplexity": { "label": "JS complexity", "policies": { - "DOMaccesses": 4, + "scriptDuration": 4, + "DOMaccesses": 3, "eventsScrollBound": 1 } }, @@ -105,7 +106,7 @@ }, "globalScore": { "pageWeight": 3, - "requests": 3, + "requests": 2, "domComplexity": 2, "javascriptComplexity": 2, "badJavascript": 2,