-
Notifications
You must be signed in to change notification settings - Fork 30
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
Extending the NavigationTimingType #184
Comments
I'm in favour 👍 |
A possible reason against, might be that it could be confusing (and possibly break compat) if we retroactively change the value of I notice that in Firefox today, it already does this. The original data in |
In part it's to avoid me (and others!) having to write code like this: I feel it would make it more obvious to anyone firing events (e.g. LCP), without having to be NavigationTimingType experts and know ALL the edge case you need to consider (3 currently!). For restores and prerender it does show new navigational timing data, so this is more about categorising that data appriopriately. For bfcache, I agree it does not fire new data. There's a question if it should? Which seems to be discussed prior to me joining this WG as per Yoav's comment. Seems like from a review of that, that there was some agreement, but needs the work to be done. Maybe we drop bfcache for now, and limit scope of my ask here to restores and prerender, since they are simpler? Bfcache could be revisited later (perhaps with soft nav as mentioned in the discussions Yoav's linked?) |
Tab duplication/cloning has the same issues. Maybe |
Related to the discussion on #179
There are a few uses cases where the NavigationTimingType does not cover the type:
document.wasDiscarded
. Should we add arestore
navigation type rather than reuse the original navigation type?back_forward
navigation, I argue BFcache restores should be a navigation. Currently this can be detected with thepersisted
flag on thepageshow
event. Should we add aback_forward_cache
navigation type, and treat this is as a true navigation, to explicitly make it easier to identify these?prerender
option is not listed in the interace, when it should be shouldn't it?These types, can have very different performance measurements compared to other navigations and it is often recommended to measure them separately, but at the moment, this results in lots of extra code for (for example) and understanding of all these nuances to enable this.
There's a lot of different issues in this one, so happy to split this out, or continue some of the discussion in #179 but thought I'd start with the one issue for now in case we wanted to tackle together.
The text was updated successfully, but these errors were encountered: