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

Consider adding a "restore" navigation type #280

Closed
philipwalton opened this issue Nov 14, 2022 · 0 comments · Fixed by #284
Closed

Consider adding a "restore" navigation type #280

philipwalton opened this issue Nov 14, 2022 · 0 comments · Fixed by #284

Comments

@philipwalton
Copy link
Member

Currently, for pages that are discarded and then restored, the only way to detect this is via document.wasDiscarded. This is easy enough, but it would be better if these were tracked via a distinct navigationType value on the Metric object.

In Chrome today, these loads receive a navigation type of back_forward, and in Safari they receive a type of navigate, both of which seem not quite applicable, so adding a dedicate type to this library seems like it would be useful to (1) help understand how often this happens, and (2) help determine whether these types of loads have any characteristics that are uncorrelated with other types of navigations.

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 a pull request may close this issue.

1 participant