Skip to content
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

Move perfy stuff into Perf Diagnostics report aggregation. #1724

Merged
merged 3 commits into from
Feb 24, 2017

Conversation

paulirish
Copy link
Member

screenshot:
image

@@ -29,7 +29,7 @@ class UnusedCSSRules extends Audit {
return {
category: 'CSS',
name: 'unused-css-rules',
description: 'Avoids loading unnecessary CSS',
description: 'Unused CSS Rules',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lolz. These are getting changed every PR.

FWIW, I really like descriptions like "Unused CSS Rules", but when you match it with the green check, it looks like you're doing a good job. That was the feedback we got from several people.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha, yeah might be worth having a dedicated report messaging discussion just to iron out what we want to standardize on :)

@@ -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>`',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we be consistent? <script> -> scripts?

@@ -40,7 +40,7 @@ class UsesOptimizedImages extends Audit {
return {
category: 'Images',
name: 'uses-optimized-images',
description: 'Avoids unoptimized images',
description: 'Unoptimized Images',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Images -> image

sentence case everywhere. PSI does that too.

screen shot 2017-02-14 at 7 01 26 pm

@@ -372,20 +359,19 @@
}
}]
}, {
"name": "Performance Metrics",
"name": "Performance diagnostics",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would "Performance" be enough?

@@ -29,7 +29,7 @@ class UnusedCSSRules extends Audit {
return {
category: 'CSS',
name: 'unused-css-rules',
description: 'Avoids loading unnecessary CSS',
description: 'Unused CSS Rules',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha, yeah might be worth having a dedicated report messaging discussion just to iron out what we want to standardize on :)

"expectedValue": 0,
"weight": 1
}
"unused-css-rules": {},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perf.json already looks like this, correct?

@paulirish
Copy link
Member Author

PTAL. Updated.

Also updated perf.json as --perf is currently broken.

@ebidel If you're down, I'd like to file a ticket to address our green-checks-next-to-"unused css rules" bug in the report. I've already added it to Lighthouse Report Requirements

@ebidel
Copy link
Contributor

ebidel commented Feb 23, 2017

IMO we should keep "Avoids..." until we've figured out something different. That language was hashed out over a couple of PRs and had Kayce input.

I'm on mobile, but there's a Pavel ticket already open that you can add to.

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with the hot potato game of descriptions, but hopefully the result of Lighthouse Report Requirements will standardize this for us :)

@paulirish
Copy link
Member Author

paulirish commented Feb 24, 2017

Merged to fix #1775 and others.

Will comment on #1613 and take the bug to address wording. Also #1750 by @sendilkumarn will help considerably with the icon/text combo.

Also @ebidel sorry for merging despite you not being totally happy.

@ebidel
Copy link
Contributor

ebidel commented Feb 25, 2017

Sorry for just catching up...

Running a report on a site that does good things, I get:

screen shot 2017-02-24 at 9 42 11 pm

Which makes it look like LH is advocating oversized images, unused css, and having unoptimized images :\

I feel like these should be something like:

  • Used majority of CSS rules
  • Optimized images
  • Appropriately sized images

IOW, the description lines should always read as the thing we want the user to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants