Speed Insights now measures soft navigations
Vercel updated Speed Insights to measure soft navigations, the client-side route changes that swap page content without a full reload. Until now the data covered full-page loads. It now follows users as they move around your app.
For soft navigations, Speed Insights captures LCP, FCP, INP, and CLS, and counts them in your Real Experience Score. TTFB isn't captured, since a soft navigation makes no new document request. A new Navigation Type filter in the project's Speed Insights dashboard lets you view All, Hard, or Soft navigation data.
Tracking is on by default for every project using Speed Insights, with nothing to set up. Vercel says it works with frameworks like Next.js, SvelteKit, and Nuxt, in Chromium-based browsers.
Soft-navigation events count toward Speed Insights Plus usage. Existing Plus customers will get an email about when billing for them starts. Projects that newly enable Plus are billed for them from the start. To turn it off, set softNavs to false and redeploy. This needs @vercel/speed-insights 2.1.0 or later. In code, that's injectSpeedInsights({ softNavs: false }), or the softNavs prop on the SpeedInsights component.