Skip to content

Commit 2912231

Browse files
mfriesenhahnpaulirish
authored andcommitted
core(audits): Point best practices audit links to web.dev (#9538)
1 parent ac8ba68 commit 2912231

20 files changed

+82
-81
lines changed

lighthouse-core/audits/deprecations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const UIStrings = {
2121
failureTitle: 'Uses deprecated APIs',
2222
/** Description of a Lighthouse audit that tells the user why they should not use deprecated APIs on their page. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
2323
description: 'Deprecated APIs will eventually be removed from the browser. ' +
24-
'[Learn more](https://www.chromestatus.com/features#deprecated).',
24+
'[Learn more](https://web.dev/deprecations).',
2525
/** [ICU Syntax] Label for the audit identifying the number of warnings generated by using deprecated APIs. */
2626
displayValue: `{itemCount, plural,
2727
=1 {1 warning found}

lighthouse-core/audits/dobetterweb/appcache-manifest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const UIStrings = {
2020
failureTitle: 'Uses Application Cache',
2121
/** Description of a Lighthouse audit that tells the user why they should not use the Application Cache API. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
2222
description: 'Application Cache is deprecated. ' +
23-
'[Learn more](https://developers.google.com/web/tools/lighthouse/audits/appcache).',
23+
'[Learn more](https://web.dev/appcache-manifest).',
2424
/**
2525
* @description Label for the audit identifying uses of the Application Cache.
2626
* @example {clock.appcache} AppCacheManifest

lighthouse-core/audits/dobetterweb/doctype.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ const UIStrings = {
1515
failureTitle: 'Page lacks the HTML doctype, thus triggering quirks-mode',
1616
/** Description of a Lighthouse audit that tells the user why they should define an HTML doctype. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
1717
description: 'Specifying a doctype prevents the browser ' +
18-
'from switching to quirks-mode. Read more on the ' +
19-
'[MDN Web Docs page](https://developer.mozilla.org/en-US/docs/Glossary/Doctype)',
18+
'from switching to quirks-mode. ' +
19+
'[Learn more](https://web.dev/doctype).',
2020
/** Explanatory message stating that the document has no doctype. */
2121
explanationNoDoctype: 'Document must contain a doctype',
2222
/** Explanatory message stating that the publicId field is not empty. */

lighthouse-core/audits/dobetterweb/dom-size.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const UIStrings = {
3131
`depth < ${MAX_DOM_TREE_DEPTH} elements and fewer than ${MAX_DOM_TREE_WIDTH} ` +
3232
'children/parent element. A large DOM can increase memory usage, cause longer ' +
3333
'[style calculations](https://developers.google.com/web/fundamentals/performance/rendering/reduce-the-scope-and-complexity-of-style-calculations), ' +
34-
'and produce costly [layout reflows](https://developers.google.com/speed/articles/reflow). [Learn more](https://developers.google.com/web/tools/lighthouse/audits/dom-size).',
34+
'and produce costly [layout reflows](https://developers.google.com/speed/articles/reflow). [Learn more](https://web.dev/dom-size).',
3535
/** Table column header for the type of statistic. These statistics describe how big the DOM is (count of DOM elements, children, depth). */
3636
columnStatistic: 'Statistic',
3737
/** Table column header for the DOM element. Each DOM element is described with its HTML representation. */

lighthouse-core/audits/dobetterweb/external-anchors-use-rel-noopener.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const UIStrings = {
1717
/** Description of a Lighthouse audit that tells the user why and how they should secure cross-origin links. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
1818
description: 'Add `rel="noopener"` or `rel="noreferrer"` to any external links to improve ' +
1919
'performance and prevent security vulnerabilities. ' +
20-
'[Learn more](https://developers.google.com/web/tools/lighthouse/audits/noopener).',
20+
'[Learn more](https://web.dev/external-anchors-use-rel-noopener).',
2121
/**
2222
* @description Warning that some links' destinations cannot be determined and therefore the audit cannot evaluate the link's safety.
2323
* @example {<a target="_blank">} anchorHTML

lighthouse-core/audits/dobetterweb/geolocation-on-start.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const UIStrings = {
2222
/** Description of a Lighthouse audit that tells the user why they should not ask for geolocation permissions on load. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
2323
description: 'Users are mistrustful of or confused by sites that request their ' +
2424
'location without context. Consider tying the request to a user action instead. ' +
25-
'[Learn more](https://developers.google.com/web/tools/lighthouse/audits/geolocation-on-load).',
25+
'[Learn more](https://web.dev/geolocation-on-start).',
2626
};
2727

2828
const str_ = i18n.createMessageInstanceIdFn(__filename, UIStrings);

lighthouse-core/audits/dobetterweb/js-libraries.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const UIStrings = {
1717
/** Title of a Lighthouse audit that provides detail on the Javascript libraries that are used on the page. */
1818
title: 'Detected JavaScript libraries',
1919
/** Description of a Lighthouse audit that tells the user what this audit is detecting. This is displayed after a user expands the section to see more. No character length limits. */
20-
description: 'All front-end JavaScript libraries detected on the page.',
20+
description: 'All front-end JavaScript libraries detected on the page. [Learn more](https://web.dev/js-libraries).',
2121
/** Label for a column in a data table; entries will be the version numbers of the detected Javascript libraries. */
2222
columnVersion: 'Version',
2323
};

lighthouse-core/audits/dobetterweb/no-document-write.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const UIStrings = {
2121
/** Description of a Lighthouse audit that tells the user why they should avoid `document.write`. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
2222
description: 'For users on slow connections, external scripts dynamically injected via ' +
2323
'`document.write()` can delay page load by tens of seconds. ' +
24-
'[Learn more](https://developers.google.com/web/tools/lighthouse/audits/document-write).',
24+
'[Learn more](https://web.dev/no-document-write).',
2525
};
2626

2727
const str_ = i18n.createMessageInstanceIdFn(__filename, UIStrings);

lighthouse-core/audits/dobetterweb/no-vulnerable-libraries.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const UIStrings = {
2828
/** Description of a Lighthouse audit that tells the user why they should be concerned about the third party Javascript libraries that they use. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
2929
description: 'Some third-party scripts may contain known security vulnerabilities ' +
3030
'that are easily identified and exploited by attackers. ' +
31-
'[Learn more](https://developers.google.com/web/tools/lighthouse/audits/vulnerabilities).',
31+
'[Learn more](https://web.dev/no-vulnerable-libraries).',
3232
/** [ICU Syntax] Label for the audit identifying the number of vulnerable Javascript libraries found. */
3333
displayValue: `{itemCount, plural,
3434
=1 {1 vulnerability detected}

lighthouse-core/audits/dobetterweb/notification-on-start.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const UIStrings = {
2222
/** Description of a Lighthouse audit that tells the user why they should not ask for notification permission on load. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. */
2323
description: 'Users are mistrustful of or confused by sites that request to send ' +
2424
'notifications without context. Consider tying the request to user gestures ' +
25-
'instead. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/notifications-on-load).',
25+
'instead. [Learn more](https://web.dev/notification-on-start).',
2626
};
2727

2828
const str_ = i18n.createMessageInstanceIdFn(__filename, UIStrings);

0 commit comments

Comments
 (0)