Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

navigation_download_size has changed as of Chrome version 125 #2777

Open
ryanwilsonperkin opened this issue May 21, 2024 · 1 comment
Open

Comments

@ryanwilsonperkin
Copy link
Member

As of Chrome v125, the PerformanceResourceTiming entries that get emitted for JS assets that are loaded via dynamic import have changed from being "other" to being "script". This causes the totalDownloadSize method of Navigation under @shopify/performance to change.

As a result, applications that use dynamic imports for progressive loading of the page will appear to have increased download sizes from their previous values in Chrome v124.

These new values do appear to be more correct, as the previous ones excluded these values as "other", but this points to a need to have a better heuristic for matching script & style downloads during a navigation.

@yoavweiss
Copy link
Member

Interesting! Doing some digging, this is the CL that changed that behavior.
I agree the behavior is better. I'd love to chat about improving initiator type further, if that helps.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants