Report Web Vitals for soft navigations
Upgrades the vendored `web-vitals` to v6 and passes `reportSoftNavs: true` to `onCLS`, `onINP` and `onLCP` in `useReportWebVitals`, so that the Core Web Vitals are also measured for soft navigations (client-side navigations that change the URL) in browsers that support the Soft Navigations API, which shipped in Chrome 151. Metrics measured for a soft navigation are reported with a `navigationType` of `soft-navigation` and the `navigationURL` they belong to. FCP and TTFB keep reporting for the initial page load only, since a soft navigation has no server request and `web-vitals` would report a TTFB of 0. `web-vitals` v5 removed `onFID`, so FID is no longer reported and is removed from `WEB_VITALS`, the `experimental.webVitalsAttribution` schema and the docs. The v4 patch that made `PerformanceEventTiming.interactionId` readonly is no longer needed, as that landed upstream. <!-- NEXT_JS_LLM --> Co-Authored-By:Claude Opus 5 (1M context) <noreply@anthropic.com> Co-Authored-By:
Malte Ubl <89679+cramforce@users.noreply.github.com>
Showing
| ... | ... | @@ -340,7 +340,6 @@ |
| "stacktrace-parser@0.1.10": "patches/stacktrace-parser@0.1.10.patch", | ||
| "taskr@1.1.0": "patches/taskr@1.1.0.patch", | ||
| "minizlib@3.1.0": "patches/minizlib@3.1.0.patch", | ||
| "web-vitals@4.2.1": "patches/web-vitals@4.2.1.patch", | ||
| "@rspack/core@1.6.7": "patches/@rspack__core@1.6.7.patch", | ||
| "@modelcontextprotocol/sdk": "patches/@modelcontextprotocol__sdk.patch", | ||
| "@vercel/blob": "patches/@vercel__blob.patch", | ||
| ... | ... |
Please
register
or
sign in
to comment