Skip to content

Commit

Permalink
add links to lighthouse docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kayce Basques committed Jun 19, 2018
1 parent 0deeeb5 commit c7304a7
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lighthouse-core/audits/byte-efficiency/unminified-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class UnminifiedCSS extends ByteEfficiencyAudit {
description: 'Minify CSS',
scoreDisplayMode: ByteEfficiencyAudit.SCORING_MODES.NUMERIC,
helpText: 'Minifying CSS files can reduce network payload sizes. ' +
'[Learn more](https://developers.google.com/speed/docs/insights/MinifyResources).',
'[Learn more](https://developers.google.com/web/tools/lighthouse/audits/minify-css).',
requiredArtifacts: ['CSSUsage', 'devtoolsLogs'],
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class CacheHeaders extends Audit {
failureDescription: 'Uses inefficient cache policy on static assets',
helpText:
'A long cache lifetime can speed up repeat visits to your page. ' +
'[Learn more](https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/http-caching#cache-control).',
'[Learn more](https://developers.google.com/web/tools/lighthouse/audits/cache-policy).',
scoreDisplayMode: Audit.SCORING_MODES.NUMERIC,
requiredArtifacts: ['devtoolsLogs'],
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ResponsesAreCompressed extends ByteEfficiencyAudit {
description: 'Enable text compression',
helpText: 'Text-based responses should be served with compression (gzip, deflate or brotli)' +
' to minimize total network bytes.' +
' [Learn more](https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/optimize-encoding-and-transfer).',
' [Learn more](https://developers.google.com/web/tools/lighthouse/audits/text-compression).',
requiredArtifacts: ['ResponseCompression', 'devtoolsLogs'],
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ class NoVulnerableLibrariesAudit extends Audit {
failureDescription: 'Includes front-end JavaScript libraries'
+ ' with known security vulnerabilities',
helpText: 'Some third-party scripts may contain known security vulnerabilities ' +
' that are easily identified and exploited by attackers.',
'that are easily identified and exploited by attackers. ' +
'[Learn more](https://developers.google.com/web/tools/lighthouse/audits/vulnerabilities).',
requiredArtifacts: ['JSLibraries'],
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class PasswordInputsCanBePastedIntoAudit extends Audit {
description: 'Allows users to paste into password fields',
failureDescription: 'Prevents users to paste into password fields',
helpText: 'Preventing password pasting undermines good security policy. ' +
'[Learn more](https://www.ncsc.gov.uk/blog-post/let-them-paste-passwords).',
'[Learn more](https://developers.google.com/web/tools/lighthouse/audits/password-pasting).',
requiredArtifacts: ['PasswordInputsWithPreventedPaste'],
};
}
Expand Down
3 changes: 2 additions & 1 deletion lighthouse-core/audits/image-aspect-ratio.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ class ImageAspectRatio extends Audit {
name: 'image-aspect-ratio',
description: 'Displays images with correct aspect ratio',
failureDescription: 'Displays images with incorrect aspect ratio',
helpText: 'Image display dimensions should match natural aspect ratio.',
helpText: 'Image display dimensions should match natural aspect ratio. ' +
'[Learn more](https://developers.google.com/web/tools/lighthouse/audits/aspect-ratio).',
requiredArtifacts: ['ImageUsage'],
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/redirects.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Redirects extends Audit {
name: 'redirects',
description: 'Avoid multiple page redirects',
scoreDisplayMode: Audit.SCORING_MODES.NUMERIC,
helpText: 'Redirects introduce additional delays before the page can be loaded. [Learn more](https://developers.google.com/speed/docs/insights/AvoidRedirects).',
helpText: 'Redirects introduce additional delays before the page can be loaded. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/redirects).',
requiredArtifacts: ['URL', 'devtoolsLogs', 'traces'],
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/time-to-first-byte.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class TTFBMetric extends Audit {
name: 'time-to-first-byte',
description: 'Keep server response times low (TTFB)',
helpText: 'Time To First Byte identifies the time at which your server sends a response.' +
' [Learn more](https://developers.google.com/web/tools/chrome-devtools/network-performance/issues).',
' [Learn more](https://developers.google.com/web/tools/lighthouse/audits/ttfb).',
requiredArtifacts: ['devtoolsLogs', 'URL'],
};
}
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/uses-rel-preload.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class UsesRelPreloadAudit extends Audit {
name: 'uses-rel-preload',
description: 'Preload key requests',
helpText: 'Consider using <link rel=preload> to prioritize fetching late-discovered ' +
'resources sooner. [Learn more](https://developers.google.com/web/updates/2016/03/link-rel-preload).',
'resources sooner. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/preload).',
requiredArtifacts: ['devtoolsLogs', 'traces', 'URL'],
scoreDisplayMode: Audit.SCORING_MODES.NUMERIC,
};
Expand Down

0 comments on commit c7304a7

Please sign in to comment.