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

misc: tweak unused audits strings (remove -> reduce) #12281

Merged
merged 8 commits into from
Apr 14, 2021
Merged

Conversation

connorjclark
Copy link
Collaborator

I think "remove" suggests (at least a little bit) that all unused JS/CSS should be removed. While that would be ideal, in practice that really is not possible. Slight change to "reduce" should avoid this.

@connorjclark connorjclark requested a review from a team as a code owner March 22, 2021 20:49
@connorjclark connorjclark requested review from paulirish and removed request for a team March 22, 2021 20:49
@google-cla google-cla bot added the cla: yes label Mar 22, 2021
Copy link
Member

@paulirish paulirish left a comment

Choose a reason for hiding this comment

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

i think you can mark this as Fixes #9189

but you might also want to consider #9189 (comment) in case they strike your fancy.

lighthouse-core/audits/byte-efficiency/unused-css-rules.js Outdated Show resolved Hide resolved
Co-authored-by: Paul Irish <paulirish@users.noreply.github.com>
/** Imperative title of a Lighthouse audit that tells the user to reduce JavaScript that is never evaluated during page load. This is displayed in a list of audit titles that Lighthouse generates. */
title: 'Reduce unused JavaScript',
/** Description of a Lighthouse audit that tells the user *why* they should reduce JavaScript that is never needed/evaluated by the browser. 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: 'Reduce unused JavaScript to reduce bytes consumed by network activity. ' +
Copy link
Member

Choose a reason for hiding this comment

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

FWIW both of these descriptions become slightly repetitive "Reduce...to reduce...". Maybe the descriptions can be tweaked more

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

Successfully merging this pull request may close these issues.

4 participants