Report WebVitals metrics for Soft Navs using latest WebVitals.js v6 #97161
Closed
gilbertococchi
started this conversation in
Ideas
Replies: 3 comments
|
It would be important because we’re adopting an SPA approach wherever possible, but we lose Core Web Vitals monitoring, which is holding back the adoption of the SPA approach (next/link also) |
0 replies
|
One additional point is that you should also use the new It looks to me that, from this reporter.js code that all |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Goals
PerformanceSoftNavigationandInteractionContentfulPaintperformance entriesPerformanceSoftNavigationentry being emitted pointing to the right Route URL path.Non-Goals
No response
Background
With version 151 Chrome released on Stable support for the
PerformanceSoftNavigationandInteractionContentfulPaintperformance entries to help better measure performance metrics across Soft Navigations.The WebVitals.js library has also being updated to version v6+ that includes an option to enable reporting of Soft Navigation metrics (documentation).
https://chromestatus.com/feature/5144837209194496
https://github.com/googlechrome/web-vitals#report-metrics-for-soft-navigations
Proposal
Update the
useReportWebVitalsonLCP, onCLS and onINP function calls here by adding the reportSoftNavs option.Example:
All reactions