From 68137ae5de5f2c81f32468f54952540f3777f1a9 Mon Sep 17 00:00:00 2001 From: Paul Irish Date: Thu, 29 Sep 2016 15:50:59 -0700 Subject: [PATCH] wording for doc.write --- lighthouse-core/audits/dobetterweb/no-document-write.js | 4 ++-- lighthouse-core/config/dobetterweb.json | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lighthouse-core/audits/dobetterweb/no-document-write.js b/lighthouse-core/audits/dobetterweb/no-document-write.js index 13587a521191..12b1af91ebb5 100644 --- a/lighthouse-core/audits/dobetterweb/no-document-write.js +++ b/lighthouse-core/audits/dobetterweb/no-document-write.js @@ -31,10 +31,10 @@ class NoDocWriteAudit extends Audit { */ static get meta() { return { - category: 'JavaScript', + category: 'Performance', name: 'no-document-write', description: 'Site does not use document.write()', - helpText: '', + helpText: 'Consider using <script async> to load scripts. document.write() is considered harmful for performance.', requiredArtifacts: ['URL', 'DocWriteUse'] }; } diff --git a/lighthouse-core/config/dobetterweb.json b/lighthouse-core/config/dobetterweb.json index 15a68ddc4ac5..bc8434901cea 100644 --- a/lighthouse-core/config/dobetterweb.json +++ b/lighthouse-core/config/dobetterweb.json @@ -59,9 +59,8 @@ "rawValue": false } } - }, - { - "name": "Avoiding APIs that are detrimental to the user experience", + }, { + "name": "Avoiding APIs that harm the user experience", "criteria": { "no-document-write": { "rawValue": false