Skip to content

core(stylesheets): disable transient stylesheet detection#16121

Merged
paulirish merged 2 commits intomainfrom
no-transient-stylesheets
Jul 23, 2024
Merged

core(stylesheets): disable transient stylesheet detection#16121
paulirish merged 2 commits intomainfrom
no-transient-stylesheets

Conversation

@adamraine
Copy link
Copy Markdown
Contributor

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
Copy Markdown
Collaborator

connorjclark commented Jul 17, 2024

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

@adamraine
Copy link
Copy Markdown
Contributor 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
@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