diff --git a/lib/metadata/policies.js b/lib/metadata/policies.js index 1f8a6fb..ab7ad78 100644 --- a/lib/metadata/policies.js +++ b/lib/metadata/policies.js @@ -71,8 +71,8 @@ var policies = { "label": "Events bound", "message": "

Binding too many events has a cost.

It can be avoided by using \"event delegation\". Instead of binding events on each element one by one, events delegation binds them on the top level document element and uses the bubbling principle. It will imperceptibly slow down the event when it occurs, but the loading of the page will speed-up.

", "isOkThreshold": 100, - "isBadThreshold": 1500, - "isAbnormalThreshold": 2000 + "isBadThreshold": 800, + "isAbnormalThreshold": 1500 }, "jsErrors": { "tool": "phantomas", @@ -80,7 +80,7 @@ var policies = { "message": "

Just to let you know there are some errors on the page.

Please note that some errors only occur in the PhantomJS browser, so you might need to double check on other browsers.

", "isOkThreshold": 0, "isBadThreshold": 1, - "isAbnormalThreshold": 2 + "isAbnormalThreshold": 4 }, "evalCalls": { "tool": "phantomas", diff --git a/lib/metadata/scoreProfileGeneric.json b/lib/metadata/scoreProfileGeneric.json index b1775f6..48a81bb 100644 --- a/lib/metadata/scoreProfileGeneric.json +++ b/lib/metadata/scoreProfileGeneric.json @@ -22,7 +22,7 @@ "badJavascript": { "label": "Bad JavaScript", "policies": { - "jsErrors": 2, + "jsErrors": 1, "documentWriteCalls": 2, "consoleMessages": 0.5, "globalVariables": 0.5