w3c / hr-time

High Resolution Time
https://w3c.github.io/hr-time/
Other
52 stars 24 forks source link

Prerendered pages and `timeOrigin` #136

Closed yoavweiss closed 2 years ago

yoavweiss commented 2 years ago

In https://github.com/WICG/nav-speculation/issues/64 we've settled on adding an activationTime timestamp for prerendered pages that would indicate when the user has activated the page - essentially when it becomes user visible.

One issue that came up on that front is that RUM scripts that are not aware of that would continue to register those prerendered pages based on the times in which they were initially prerendered, which can be significantly earlier, and cause folks to think their pages got slower, when in fact all that happened is that they were prerendered.

An alternative approach could be to change the timeOrigin on prerendered pages to represent the activation time, rather than the start time of the navigation request. There are two options there:

yoavweiss commented 2 years ago

Discussed on the WebPerfWG call.

Summary:

Closing, but feel free to reopen if new arguments in favor of changing the timeOrigin arise.