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(css-usage): prevent late stylesheet additions #15865

Merged
merged 3 commits into from
Mar 13, 2024

Conversation

adamraine
Copy link
Member

@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
@adamraine adamraine merged commit 2200be5 into main Mar 13, 2024
28 of 29 checks passed
@adamraine adamraine deleted the better-css-usage-navigation branch March 13, 2024 18:08
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