Core Web Vitals are three metrics Google uses to measure how a page feels to use: Largest Contentful Paint (LCP) for loading, Interaction to Next Paint (INP) for responsiveness, and Cumulative Layout Shift (CLS) for visual stability. If you build for the web, these three numbers are the baseline for a good user experience — and they feed into search rankings too.
The three metrics, in plain terms
Largest Contentful Paint (LCP) measures how long the largest visible element takes to render — usually the hero image or the main heading. Google's target is under 2.5 seconds. LCP is slow when the server is slow, when render-blocking CSS and JavaScript delay the first paint, or when the hero image is huge and unoptimised.
Interaction to Next Paint (INP) measures how quickly the page responds when a user clicks, taps or types. The target is under 200 milliseconds. INP is bad when the main thread is busy: long JavaScript tasks, heavy event handlers and third-party scripts all block the browser from responding to input.
Cumulative Layout Shift (CLS) measures how much the page moves around while it loads. The target is a score below 0.1. CLS is caused by images without dimensions, web fonts swapping in, and content injected above existing content — like a banner or an ad loading late.
How to measure them
The numbers you see in Lighthouse are lab data: useful, but not what real users experience. The numbers that matter are field data, from real users on real devices, which you can see in PageSpeed Insights or the Chrome User Experience Report (CrUX). A page can pass in the lab and fail in the field, especially on slow mobile connections.
For local debugging, use the Web Vitals extension for Chrome, or the Performance panel in DevTools. Both show the metrics as you interact with the page, which is exactly how INP needs to be measured — it only exists once a user interacts.
Fixing LCP
Start with the server: a slow Time to First Byte (TTFB) makes everything else late. Then look at the critical path. Inline critical CSS, defer non-critical JavaScript, and preload the hero image with fetchpriority="high". If the hero is an image, serve it in a modern format (AVIF or WebP), size it correctly for the viewport, and make sure it is not being lazy-loaded — lazy-loading the largest element on the page is one of the most common LCP mistakes.
<img src="hero.avif" fetchpriority="high" width="1200" height="800" alt="">
Fixing INP
Break up long tasks. Any JavaScript task over 50 milliseconds blocks the main thread, and the browser cannot respond to input while it runs. Use setTimeout or scheduler.yield() to split heavy work, avoid doing expensive work inside event handlers, and audit third-party scripts — chat widgets, analytics and tag managers are frequent offenders. Code-splitting so that only the JavaScript needed for the current view is loaded also helps, because less code means less work on the main thread.
Fixing CLS
Always set width and height (or an aspect-ratio) on images and video, so the browser reserves the right amount of space before they load. Reserve space for ads and embeds too, and never insert content above existing content after the page has rendered. For web fonts, use font-display: swap and match fallback font metrics with size-adjust so the swap does not shift the text.
img {
aspect-ratio: 16 / 9;
}
A practical workflow
Check the field data first, fix the worst metric, and re-measure. Most sites have one dominant problem: a slow hero image, a chat widget blocking input, or images without dimensions. Fix that one thing, ship it, and measure again. Core Web Vitals are not a one-off audit — they drift as features are added, so put the metrics in your CI pipeline or monitor them in production. The goal is not a perfect score; it is a page that loads fast, responds instantly and never jumps around under the user's cursor.
Top comments (0)