The Web Performance Journey at trivago, Part 1: Doing Less on the Page
Three years of Core Web Vitals work at trivago moved the site's p75 LCP from 2.7 s to 2.0 s, INP from 650 ms to 400 ms and CLS from 0.15 to below 0.05, mostly by removing work rather than optimizing it. A small IntersectionObserver-based virtualization of the 35-card mobile results list raised Android click-throughs by 2.1%, and its value was confirmed in 2026 when switching it off to dodge a Safari 26 scrolling bug pushed INP from 500 ms to 800 ms. Subsetting a 125 KB variable web font cut it by up to 44% with no measurable effect, while replacing it with a system font stack improved Visually Complete and revenue metrics. For searches without dates, stopping live price polling early and then serving a backend pre-ranked static list reduced layout shifts and network and main-thread work.
Related posts
- 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 soft navigation web vitals
Sentry mediumAdeptChrome (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.
- 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.
- 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.
- Optimizing WebKit & Safari for Speedometer 3.0
WebKit hardMasterWebKit's Speedometer 3.0 work spans JavaScriptCore, DOM, style, layout, rendering and Safari itself, with measured gains for each change. The largest wins came from letting the simple text path handle font-variant-caps (4.5x on Editor-TipTap, ~7% overall) and from scheduling incremental sweeping and garbage collection opportunistically between rendering updates (6.5% on Speedometer 3.0). Other changes include reworked megamorphic and call inline caches, retuned inlining heuristics, lazy JIT code destruction, enum-based RenderObject type checks, cached CSS custom property resolution, and a larger IOSurface cache (hit rate ~30% to ~80%). Profile-guided optimization interacts with code changes in a surprising way: some improvements only appear, or briefly regress, until the PGO profiles refresh.