DOMQueriesAvoidable taking offenders from DOMQueriesDuplicated

This commit is contained in:
Gaël Métais
2014-12-23 18:06:33 +01:00
parent c0e02726be
commit 606c2c6f95
4 changed files with 12 additions and 3 deletions
+2 -1
View File
@@ -55,7 +55,8 @@ var policies = {
"message": "<p>This is the number of queries that could be avoided by removing all duplicated queries.</p><p>Simply save the result of a query in a variable. Ok it is not always simple, especially with third-party scripts, but at least do it with your own code.</p>",
"isOkThreshold": 0,
"isBadThreshold": 200,
"isAbnormalThreshold": 500
"isAbnormalThreshold": 500,
"takeOffendersFrom": "DOMqueriesDuplicated"
},
"eventsBound": {
"tool": "phantomas",