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.
Fixes CSS issue in https://github.com/GoogleChrome/lighthouse/issues/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 ofCSSUsage
to stop collecting new stylesheets immediately once the navigation ends.