Skip to content

Commit

Permalink
Move perfy stuff into Perf Diagnostics report aggregation.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed Feb 15, 2017
1 parent d1b9110 commit 791287f
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 28 deletions.
2 changes: 1 addition & 1 deletion lighthouse-core/audits/byte-efficiency/unused-css-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class UnusedCSSRules extends Audit {
return {
category: 'CSS',
name: 'unused-css-rules',
description: 'Avoids loading unnecessary CSS',
description: 'Unused CSS Rules',
helpText: 'Remove unused rules from stylesheets to reduce unnecessary ' +
'bytes consumed by network activity. ' +
'[Learn more](https://developers.google.com/speed/docs/insights/OptimizeCSSDelivery)',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class UsesOptimizedImages extends Audit {
return {
category: 'Images',
name: 'uses-optimized-images',
description: 'Avoids unoptimized images',
description: 'Unoptimized Images',
helpText: 'Images should be optimized to save network bytes. ' +
'The following images could have smaller file sizes when compressed with ' +
'[WebP](https://developers.google.com/speed/webp/) or JPEG at 80 quality. ' +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class UsesResponsiveImages extends Audit {
return {
category: 'Images',
name: 'uses-responsive-images',
description: 'Avoids oversized images',
description: 'Oversized Images',
helpText:
'Image sizes served should be based on the device display size to save network bytes. ' +
'Learn more about [responsive images](https://developers.google.com/web/fundamentals/design-and-ui/media/images) ' +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class LinkBlockingFirstPaintAudit extends Audit {
return {
category: 'Performance',
name: 'link-blocking-first-paint',
description: 'Avoids `<link>` that delay first paint',
description: 'Render-blocking Stylesheets',
helpText: 'Link elements are blocking the first paint of your page. Consider ' +
'inlining critical links and deferring non-critical ones. ' +
'[Learn more](https://developers.google.com/web/tools/lighthouse/audits/blocking-resources).',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class ScriptBlockingFirstPaint extends Audit {
return {
category: 'Performance',
name: 'script-blocking-first-paint',
description: 'Avoids `<script>` in head that delay first paint',
description: 'Render-blocking `<script>`',
helpText: 'Script elements are blocking the first paint of your page. Consider inlining ' +
'critical scripts and deferring non-critical ones. ' +
'[Learn more](https://developers.google.com/web/tools/lighthouse/audits/blocking-resources).',
Expand Down
30 changes: 8 additions & 22 deletions lighthouse-core/config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -271,13 +271,6 @@
"description": "Resources made by this application should be severed over HTTP/2 for improved performance."
}
}
}, {
"name": "Using bytes efficiently",
"audits": {
"unused-css-rules": {},
"uses-optimized-images": {},
"uses-responsive-images": {}
}
}, {
"name": "Using modern CSS features",
"audits": {
Expand All @@ -301,12 +294,6 @@
"no-document-write": {
"expectedValue": false
},
"link-blocking-first-paint": {
"expectedValue": false
},
"script-blocking-first-paint": {
"expectedValue": false
},
"external-anchors-use-rel-noopener": {
"expectedValue": true
},
Expand Down Expand Up @@ -372,20 +359,19 @@
}
}]
}, {
"name": "Performance Metrics",
"name": "Performance diagnostics",
"description": "These encapsulate your app's performance.",
"scored": false,
"categorizable": false,
"items": [{
"audits": {
"critical-request-chains": {
"expectedValue": 0,
"weight": 1
},
"user-timings": {
"expectedValue": 0,
"weight": 1
}
"unused-css-rules": {},
"uses-optimized-images": {},
"uses-responsive-images": {},
"critical-request-chains": {},
"link-blocking-first-paint": {},
"script-blocking-first-paint": {},
"user-timings": {}
}
}]
}, {
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/formatters/partials/table.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{{#if rows}}
<details class="subitem__details">
<summary class="subitem__detail">More information</summary>
<summary class="subitem__detail">View details</summary>
<table class="table_list {{#if_not_eq headings.length 2}}multicolumn{{/if_not_eq}}">
<thead>
<tr>
Expand Down

0 comments on commit 791287f

Please sign in to comment.