The three Core Web Vitals, and what actually moves them
Most sites have two or three real performance problems and a long tail that is not worth touching. Knowing which metric you are failing tells you which is which.
9 min read
- SEO
- Core Web Vitals
- Performance
Core Web Vitals are three metrics Google uses to describe what a page feels like to a real person. They are a confirmed ranking signal, but the better argument for caring about them is that they correlate with whether visitors stay.
Each measures something different, and each has a small number of causes that dominate everything else. Diagnosing which metric you are failing is most of the work.
LCP: how long until the main thing appears
Largest Contentful Paint measures the time until the biggest element in the viewport has rendered, usually a hero image or a headline. The threshold is 2.5 seconds. It is the closest thing to how fast the page feels.
In practice LCP is almost always one of four things:
- A very large image. This is the common one. An unoptimised hero photograph can be several megabytes, and on a mobile connection nothing else matters until it has arrived.
- An image loaded as a CSS background. The framework cannot optimise what it cannot see. No modern format, no responsive sizes, no dimensions, and the browser only discovers it after the stylesheet has parsed.
- A slow server response. If the HTML takes a second to arrive, everything after it starts a second late.
- Render-blocking resources in the head, or a font that hides text until it loads.
The fix for the first two is the same: serve the image through the framework's image component, in a modern format, at the size it is actually displayed, and mark only the one LCP image as high priority. Marking everything as priority is the same as marking nothing.
<Image
src={hero}
alt="..."
priority // the LCP image, and only this one
sizes="(max-width: 768px) 100vw, 50vw"
/>One practical note: check the real weight of the assets you serve, not the ones in your design files. A 5 MB background PNG that nobody has looked at since the first commit is a surprisingly common finding.
INP: how quickly the page answers
Interaction to Next Paint measures the delay between a user acting and the screen changing in response, across the whole visit, and reports close to the worst case. The threshold is 200 milliseconds. It replaced First Input Delay in 2024, and it is stricter in a useful way: FID only measured the first interaction, so a page could be sluggish for its entire life and still pass.
INP is a main-thread problem. The browser cannot repaint while JavaScript is running, so anything that occupies the main thread turns into visible lag.
- Too much hydration. A page marked entirely as client-side hydrates all of itself, and until that finishes, interactions queue.
- Handlers that do real work on every keystroke. Recalculating a whole form's derived state in onChange is a classic, and it gets slower as the form grows.
- Unthrottled scroll or resize listeners that set state on every event.
- Third-party scripts loaded eagerly, competing with your own code for the same thread.
The largest single lever is usually shipping less JavaScript: render on the server, and keep the interactive boundary around the components that are genuinely interactive. After that, throttle the listeners and load third-party scripts after the content rather than before it.
CLS: how much the page moves while loading
Cumulative Layout Shift measures unexpected movement of visible content. The threshold is 0.1. It is the metric behind reaching for a link and having an advert push it out from under your finger.
The causes are mechanical and mostly easy to fix:
- Images and videos without width and height, or without an aspect ratio. The browser reserves nothing, then reflows everything below once the file arrives.
- Web fonts that swap at a different size to the fallback, moving every line of text.
- Banners, cookie notices and alerts injected above existing content instead of overlaid on it.
- Entrance animations that start elements offset and move them into place after hydration.
That last one deserves a moment, because it is self-inflicted and easy to miss. An animation library that sets an initial offset renders that offset into the server HTML as an inline style. The first paint therefore ships your headline invisible or displaced, and it only settles once hydration runs. Above the fold, use CSS animation that does not affect layout, or no animation at all.
Lab numbers and field numbers are not the same
A local audit is a lab measurement: one device, one network, one run. Useful for comparing before and after, and for finding causes. It is not what Google uses for ranking.
The field data comes from real visits by real Chrome users, aggregated over 28 days, reported at the 75th percentile. That means one visitor in four has an experience worse than your reported number, and it means an improvement you shipped today will take weeks to show up.
Use lab data to find and fix. Use field data to confirm it worked. Do not use one to argue with the other.
A workable order of attack
- 1.Measure a production build, not a development server. Development builds are not optimised and the numbers are meaningless.
- 2.Find the LCP element on each important route and check what it weighs.
- 3.Fix images first. It is usually the largest single improvement available.
- 4.Check how much JavaScript each route ships, and move the interactive boundary down where it is too high.
- 5.Reserve space for anything that loads late, and remove entrance animations from above-the-fold content.
- 6.Add a performance budget to CI so the next feature cannot quietly undo the work.
Almost every site has two or three problems that account for most of the gap, and a long tail that is not worth the effort yet. Measure first, so you spend the effort on the two or three.