-
Notifications
You must be signed in to change notification settings - Fork 143
Description
Chrome is experimenting with support for Soft Navigations, which would make it possible for folks to see Core Web Vitals (and other page lifecycle metrics) for single-page applications. https://developer.chrome.com/blog/soft-navigations-experiment/
This would be awesome to support because right now testing SPA's in WebPageTest with multi-page steps means we can't provide those metrics.
There are a few things we could use here:
One is to look for soft-navigation events in a Performance Observer like so:
const observer = new PerformanceObserver(console.log);
observer.observe({ type: "soft-navigation", buffered: true });
The other is to look at the trace events the Chrome team was kind enough to add: https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/timing/soft_navigation_heuristics.cc;drc=0c4306fc554c80506eb0f9b833a5d2a5fdd452d5;l=204