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

Make ad-render-blocking-resources audit have display mode binary instead of numeric #123

Merged
merged 13 commits into from
Sep 10, 2019

Conversation

jonkeller
Copy link
Collaborator

@jonkeller jonkeller commented Sep 9, 2019

I made the change, but there is no longer any visual difference between the two display modes, due to the somewhat-recent Lighthouse UI refresh.
Fixes #90

@jonkeller jonkeller self-assigned this Sep 9, 2019
@@ -74,7 +74,7 @@ class AdRenderBlockingResources extends RenderBlockingResources {
id: 'ad-render-blocking-resources',
title: str_(UIStrings.title),
failureTitle: str_(UIStrings.failureTitle),
scoreDisplayMode: 'numeric',
scoreDisplayMode: 'binary',
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I also toyed with removing line 122 below, but it also did not make any visual difference.

@brendankenny
Copy link
Collaborator

I made the change, but don't see any visual difference. Am I missing something, or is this just due to the somewhat-recent Lighthouse UI refresh?

Yeah, I don't think it makes any difference these days, more or less vestigial from when we wanted different indicators for audit state based on if it was a pass/fail or numerically-scored audit. Now its only use is maybe giving context on what range of scores are possible from an audit...but I don't know of anyone who actually uses binary/numeric for that.

@jonkeller
Copy link
Collaborator Author

Ok, thanks Brendan! I'll move it from a Draft PR to a real one in that case.

@jonkeller jonkeller marked this pull request as ready for review September 9, 2019 21:08
@jonkeller jonkeller merged commit 5f86a50 into master Sep 10, 2019
@jonkeller jonkeller deleted the ad-render-blocking-resources-binary branch September 10, 2019 17:36
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.

ad-render-blocking-resources should have display mode binary instead of numeric
4 participants