Skip to content

Add support for Soft Navigation #603

Description

@tkadlec

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions