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

What design should be used for reporting navigation duration? #33

Closed
domenic opened this issue Feb 11, 2021 · 1 comment · Fixed by #125
Closed

What design should be used for reporting navigation duration? #33

domenic opened this issue Feb 11, 2021 · 1 comment · Fixed by #125
Labels
surface api Minor tweaks or additions to the API surface to make it nicer (without changing the model)

Comments

@domenic
Copy link
Collaborator

domenic commented Feb 11, 2021

After #27, the proposal discusses how you can get the "duration of the navigation" via event.timeStamp - event.startTime, at least for same-document navigations. It has an open question about whether this should work for cross-document navigations (related to #31).

A larger question is whether this property-on-an-event design is the right approach at all. We need to coordinate with the WebPerf folks, e.g. @yoavweiss is apparently working on a way to generate PerformanceEntry instances for bfcache navigations, which have some similarities to same-document navigations. Maybe (probably?) we should just have same-document navigations be measured via the those performance timeline mechanisms as well.

domenic added a commit that referenced this issue Feb 11, 2021
Closes #8 by renaming to something shorter, although not to the proposed name since navigationStart is apparently deprecated.

Closes #12 by changing the semantics to when the navigation is initiated to be more useful.

Points to #33 for further work on this area.
@domenic domenic added the surface api Minor tweaks or additions to the API surface to make it nicer (without changing the model) label Feb 17, 2021
@kenchris
Copy link

The @w3ctag think that is makes sense to use the same primitive for this and bfcache navigations, but developers should be able to see what navigation type happened so that you can differentiate the two

domenic added a commit that referenced this issue May 27, 2021
This replaces our previous broken idea of using currentchange for this. Closes #59. Closes #33. #14 remains to track whether currentchange is actually useful.
domenic added a commit that referenced this issue Jun 4, 2021
This replaces our previous broken idea of using currentchange for duration tracking. Closes #59. Closes #33. Closes #14 by removing currentchange entirely for now (we can always add it back later if we see a use case).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
surface api Minor tweaks or additions to the API surface to make it nicer (without changing the model)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants