You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently page deactivation (specifically calling pagehide and visibilitychange) is done some time after responseStart and before the new page is activated, but it's unclear how long they took.
This becomes more important with the introduction of cross-document view transitions, as the browser might add a rendering step between the new page's response headers being ready and deactivating the old document.
Proposing to add deactivationStart or some such to PerformanceNavigationTiming, that marks the time right before firing pagehide & visibilitychange (both of which fire before unload). This will only be accessible in same-origin navigation.
In addition, we should finish specing and implementing w3c/resource-timing#345 - if we have finalResponseHeadersEnd and deactivationStart, the time in between would often mean the time spend preparing a view-transition.
Should there be a deactivationEnd? I think it should be at the basically the same time as unloadEventEnd, which makes it somewhat redundant but for symmetry and for a future where hopefully there is no unload event it would be nice to have.
Noam went over the proposal a bit further, clarifying what it could measure and how it can help identify troublesome page event handlers (on the previous page)
These types of measurements could be done by a site on its own (transitioning measurements to the next page), but these timestamps would offer a convenience
Next steps is for RUM vendors to talk to their customers / consumers and see if this is impacting folks that are trying to measure view-transitions, and report back
Currently page deactivation (specifically calling
pagehide
andvisibilitychange
) is done some time afterresponseStart
and before the new page is activated, but it's unclear how long they took.This becomes more important with the introduction of cross-document view transitions, as the browser might add a rendering step between the new page's response headers being ready and deactivating the old document.
Proposing to add
deactivationStart
or some such toPerformanceNavigationTiming
, that marks the time right before firingpagehide
&visibilitychange
(both of which fire beforeunload
). This will only be accessible in same-origin navigation.In addition, we should finish specing and implementing w3c/resource-timing#345 - if we have
finalResponseHeadersEnd
anddeactivationStart
, the time in between would often mean the time spend preparing a view-transition./cc @tunetheweb @fergald @yoavweiss
The text was updated successfully, but these errors were encountered: