Measuring soft navigation web vitals
Chrome (Chromium 151+) now reports web vitals for soft navigations, and Sentry's JavaScript SDK v11 attaches per-navigation LCP, CLS and INP to SPA `navigation` spans by default, using span streaming because vitals finalize after the span ends. Measuring from the triggering interaction to the main content paint gives user-facing durations that idle-based span ends miss: in Sentry's app, page-load LCP is 2.85s at p75 while the pageload span ends at 6.77s. Page-load CLS/INP are cut off at the first soft navigation, and pages users only reach by clicking finally get data. Soft navigations made up about 62% of page views and had a p75 LCP of 1.17s versus 2.48s overall, so mixed scores will look better after upgrading. Alerts should be filtered on the new `browser.navigation.type` attribute.
Related posts
- The Importance of Using a Composite Metric to Measure Performance
Indeed Engineering mediumAdeptSingle client-side performance metrics such as Indeed's custom JSV Delay, domContentLoadEnd and LCP each miss parts of the user's perceived page load, and optimizing one often degrades another. Timeline scenarios show pages with identical total load time feeling very different depending on when content appears and when it becomes interactive. Indeed instead uses a composite Lighthouse score that weights LCP, TBT and CLS most heavily, with FCP and Speed Index contributing less, and treats scores of 90 or above as fast. TTI alone is rejected as an estimated, deprecated signal that is only useful as corroboration, and the recommendation is to keep a composite metric while revising its components as technology changes.
- The Vitality of Core Web Vitals
Shopify Engineering mediumAdeptCore Web Vitals, which became a Google Search ranking factor in mid-2021, consist of three metrics: Largest Contentful Paint (good at 2.5s or less), First Input Delay (good at 100ms or less) and Cumulative Layout Shift (good at 0.1 or less). Each is defined precisely: which elements count as LCP candidates, why FID measures only input delay and not handler time, and how a layout shift score is computed as impact fraction times distance fraction. Measurement can happen in the lab (Lighthouse, WebPageTest, the Web Vitals extension, with Total Blocking Time standing in for FID) or in the field (CrUX-based tools and RUM). Suggested fixes include trimming and tree-shaking third-party libraries, which cut Oberlo's bundle by 23%, and preloading critical assets, where preloading fonts improved Shopify's text paint by 1.2 seconds.
- Measuring the back/forward cache with Application Metrics
Sentry mediumAdeptSentry's new opt-in bfcacheMetricsIntegration (JavaScript SDK v11) turns the browser's back/forward cache decisions into application metrics, closing a blind spot where cache hits leave no page-load telemetry. Built on the pageshow event and the notRestoredReasons API, it emits three metrics: a hit/miss counter per back/forward navigation, a Chromium-only counter of not-restored reasons with the frame that caused them (e.g. unload listeners, websockets, Cache-Control: no-store), and a distribution of fallback reload duration that measures what each miss cost the user. Because eligibility can regress without code changes, the recommendation is to track hit rate continuously and break misses down by route, release and browser.
- OpenTelemetry for JavaScript Observability at Zalando
Zalando Engineering mediumAdeptZalando built thin OpenTelemetry-based observability SDKs for Node.js and the browser, sharing a common API package so isomorphic apps can be instrumented consistently. The Node.js SDK autoconfigures from Kubernetes environment variables and ships default runtime metrics (CPU, memory, GC, event loop lag) plus opt-in HTTP/Express instrumentation. The browser SDK was trimmed to about 30 KB by cherry-picking packages and lazy-loading the rest. It exports telemetry via sendBeacon through the Skipper edge proxy, gated on GDPR consent, and is exposed to frontend developers through Rendering Engine renderer APIs. Key lessons include avoiding OpenTelemetry context (Zone.js in browsers, and migration friction from OpenTracing) in favour of passing spans manually, and defining custom histogram buckets so Core Web Vitals such as LCP and CLS get meaningful percentiles.
- From latency to instant: Modernizing GitHub Issues navigation performance
GitHub Engineering mediumAdeptGitHub made Issues navigation feel instant by moving to a local-first, stale-while-revalidate model: render issue pages from client-side data first, then revalidate in the background. A persistent IndexedDB cache made about 22% of React soft navigations instant at a ~33% hit rate, with roughly 4.7% server/cache divergence. Rate-limited, low-priority preheating from issue lists and an in-memory cache tier raised the hit ratio to ~96%, so up to ~70% of React navigations became instant. A service worker extends the cache to Turbo and hard navigations by signalling cache hits via a request header, letting the server return a thin HTML shell instead of a full server-rendered page. The tradeoff on hard navigations is that the critical path shifts to JavaScript download and execution.