Skip to content

Commit

Permalink
wording for doc.write
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Sep 29, 2016
1 parent 8da3114 commit 68137ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lighthouse-core/audits/dobetterweb/no-document-write.js
Expand Up @@ -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 <code>&lt;script async></code> to load scripts. <code>document.write()</code> is considered <a href="https://developers.google.com/web/updates/2016/08/removing-document-write" target="_blank">harmful for performance</a>.',
requiredArtifacts: ['URL', 'DocWriteUse']
};
}
Expand Down
5 changes: 2 additions & 3 deletions lighthouse-core/config/dobetterweb.json
Expand Up @@ -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
Expand Down

0 comments on commit 68137ae

Please sign in to comment.