Skip to content

core(css-usage): prevent late stylesheet additions#15865

Merged
adamraine merged 3 commits intomainfrom
better-css-usage-navigation
Mar 13, 2024
Merged

core(css-usage): prevent late stylesheet additions#15865
adamraine merged 3 commits intomainfrom
better-css-usage-navigation

Conversation

@adamraine
Copy link
Copy Markdown
Contributor

@adamraine adamraine commented Mar 12, 2024

Fixes CSS issue in #15864, still need to look into the JS files

If there is enough of a gap between the end of the page load and CSSUsage.getArtifact, stylesheets that were added late in the page lifecycle can show up without a matching network request. This PR changes the behavior of CSSUsage to stop collecting new stylesheets immediately once the navigation ends.

@adamraine adamraine requested a review from a team as a code owner March 12, 2024 22:46
@adamraine adamraine requested review from connorjclark and removed request for a team March 12, 2024 22:46
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.

2 participants