-
Notifications
You must be signed in to change notification settings - Fork 9.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core(audits): Point best practices audit links to web.dev #9538
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,8 +15,8 @@ const UIStrings = { | |
failureTitle: 'Page lacks the HTML doctype, thus triggering quirks-mode', | ||
/** 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. */ | ||
description: 'Specifying a doctype prevents the browser ' + | ||
'from switching to quirks-mode. Read more on the ' + | ||
'[MDN Web Docs page](https://developer.mozilla.org/en-US/docs/Glossary/Doctype)', | ||
'from switching to quirks-mode. ' + | ||
'[Learn more](https://web.dev/doctype).', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This can probably fit with the line above. |
||
/** Explanatory message stating that the document has no doctype. */ | ||
explanationNoDoctype: 'Document must contain a doctype', | ||
/** Explanatory message stating that the publicId field is not empty. */ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ const UIStrings = { | |
`depth < ${MAX_DOM_TREE_DEPTH} elements and fewer than ${MAX_DOM_TREE_WIDTH} ` + | ||
'children/parent element. A large DOM can increase memory usage, cause longer ' + | ||
'[style calculations](https://developers.google.com/web/fundamentals/performance/rendering/reduce-the-scope-and-complexity-of-style-calculations), ' + | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just curious if There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably! 😄 @addyosmani can probably give a better sense of the priority of those docs relative to other stuff in the perf section. |
||
'and produce costly [layout reflows](https://developers.google.com/speed/articles/reflow). [Learn more](https://developers.google.com/web/tools/lighthouse/audits/dom-size).', | ||
'and produce costly [layout reflows](https://developers.google.com/speed/articles/reflow). [Learn more](https://web.dev/dom-size).', | ||
/** Table column header for the type of statistic. These statistics describe how big the DOM is (count of DOM elements, children, depth). */ | ||
columnStatistic: 'Statistic', | ||
/** Table column header for the DOM element. Each DOM element is described with its HTML representation. */ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ const UIStrings = { | |
/** 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. */ | ||
description: 'Add `rel="noopener"` or `rel="noreferrer"` to any external links to improve ' + | ||
'performance and prevent security vulnerabilities. ' + | ||
'[Learn more](https://developers.google.com/web/tools/lighthouse/audits/noopener).', | ||
'[Learn more](https://web.dev/external-anchors-use-rel-noopener).', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FWIW this doc just came up in #9531 about possibly needing some tweaks There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've added this comment to web.dev issue 1342 for tracking. |
||
/** | ||
* @description Warning that some links' destinations cannot be determined and therefore the audit cannot evaluate the link's safety. | ||
* @example {<a target="_blank">} anchorHTML | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
man we're really not making good progress on getting rid of
Learn more
are we team 😆(I think this is the right thing to do here @mfriesenhahn, just a bummer that we've been talking about following our own advice for a long time and it's sad to see one more convert to "Learn more")