Expose back-forward-cache navigations to Performance Timeline API
- Category
- Miscellaneous
- Type
- New or changed feature
- Status
- No active development (Chrome No active development)
- Intent stage
- Start incubating
Summary
This adds a Performance Timeline entry type, "back-forward-cache-restoration", which is emitted every time that a page is retrieved from the back-forward cache, and a field on all performance timeline entries, "navigationId", which can be used to tie performance events to the most recent navigation-like event. This allows developers to more easily use the performance APIs to compare the user experience of an SPA or a bfcache-eligible page with that of a traditional multi-page experience.
Motivation
With the rise of single-page applications (SPAs) and the introduction of the back-forward cache, there are now a few different kinds of interaction that a user can have with a web page which appear to be navigation transitions, but do not actually result in a new page load. Because of this, it is difficult to use the performance APIs to compare the user experience of an SPA or a bfcache-eligible page with that of a traditional multi-page experience. This feature allows the page to expose these new types of navigations to the performance timeline, and connects together the various timeline entries which are associated with each such navigation.
Standards & signals
- Firefox: No signal
- Safari: No signal
- Web developers: No signals
- Tracking bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1273925
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=expose-back-forward-cache-navigations-to-performance-timeline-api
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Expose%20back-forward-cache%20navigations%20to%20Performance%20Timeline%20API
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Expose%20back-forward-cache%20navigations%20to%20Performance%20Timeline%20API
- Baseline status: https://webstatus.dev/?q=Expose%20back-forward-cache%20navigations%20to%20Performance%20Timeline%20API