-
Notifications
You must be signed in to change notification settings - Fork 26
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
Introduce performance timeline API integration #125
Conversation
Apologies for the delay in reviewing this! Might be interesting to discuss this with the WG. WDYT? |
Do you have thoughts on how that would work? In particular:
|
What we talked about for BFCache is that it'd be interesting to add a
Looking at the list, I can see how they can be intermixed with "navigate" and "back_forward". That seems solvable (e.g. by adding 2 types for same-document navs)
The same is largely true for BFCache navigations. That's indeed unfortunate, but there were multiple voices among the API users that preferred the ergonomics and discoverability advantages of reusing the current "navigation" observers over having to kick off an observer for each new navigation type. I'm happy to re-open that discussion if you disagree with that decision, but it'd be good to align both proposals on the same pattern. |
I don't quite understand the proposal. Are you saying we should expand
I think it'd be good to reopen that discussion, especially since you could get the same benefits by using a fresh subclass of But even beyond that, I would think that, given how same-document navigations are very different from cross-document ones, you'd want to use a separate |
I didn't really consider "reload" for same document navs and didn't consider "replace" to be a separate type. Agree that as you outlined it may be awkward, and it may be better to split that information to a separate attribute (e.g. a "same-document navigation" boolean). I'm not sure it justifies a completely separate entry though.
Can you expand on that? Would you be interested in presenting to the WebPerfWG your proposal in one of the future calls? |
Yeah, replace is a very separate type in specs and implementations, and we have some evidence developers want to handle them differently. So for single-page navs at least they should be separate.
What would you like me to expand on? The suggestion is to just have a subclass of
Is there any way to have the discussion asynchronously? |
Based on some offline discussion with web developers, I got a few points of feedback:
I'll merge this for now, but happy to continue discussion, especially as we start implementing! |
This replaces our previous broken idea of using
currentchange
for this. Closes #59. Closes #33. #14 remains to track whethercurrentchange
is actually useful.The main question is, what information should be included here, beyond the basics of URL/start time/duration? So far I added
success
, but I'm not sure whether that's useful. Other ideas includenavigationType
,navigateInfo
,userInitiated
, andreferrer
(or some other name for the previous URL).See also #124 since I think interrupted navigations counting as failures would be pretty noisy to send to an analytics provider unless we also fix that.
@yoavweiss, I'd love your thoughts on this!