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

core(stylesheets): disable transient stylesheet detection #16121

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

adamraine
Copy link
Member

Fixes #16118

This is to avoid having the CSS domain enabled during the navigation. Unfortunately, I don't see a way to have the CSS domain disabled and collect transient stylesheets.

Now, Lighthouse will only detect stylesheets that are present at the end of the run. This will affect timespan mode more than navigation mode.

@adamraine adamraine requested a review from a team as a code owner July 17, 2024 15:57
@adamraine adamraine requested review from connorjclark and removed request for a team July 17, 2024 15:57
@connorjclark
Copy link
Collaborator

connorjclark commented Jul 17, 2024

Can we do this only in navigation mode so as not to hamper timespan?

@adamraine
Copy link
Member Author

Can we do this only in navigation mode so as not to hamper timespan?

That is one option, but the only audit this should affect in timespan mode is unminified-css. I think accurate performance metrics in timespan mode should be paramount over accuracy in unminified-css.

@paulirish paulirish merged commit cd21fa3 into main Jul 23, 2024
27 checks passed
@paulirish paulirish deleted the no-transient-stylesheets branch July 23, 2024 14:16
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.

Page loads very slowly due to CSS.enable
4 participants