Core Web Vitals Explained: LCP, INP, CLS, Why They Matter and How to Manage Performance
A complete guide to Core Web Vitals: what LCP, INP and CLS measure, why performance matters more than ever, real use cases, how to measure and fix each metric, and how teams manage performance with budgets, Lighthouse CI and monitoring.
A slow, jumpy page loses users before they read a word. Core Web Vitals are three metrics from Google that measure what users actually feel: how fast the main content appears, how quickly the page responds, and whether things jump around. They also feed into Google Search ranking signals, so they matter for SEO too.
This guide covers what each metric means, why performance matters even more today, where it matters most, how to fix each metric, and how to manage performance as a team so your site stays fast after launch.
Why performance matters more than ever#
Modern sites ship more than ever: large JavaScript frameworks, analytics, chat widgets, ads, and now AI features like chatbots and smart search. Every extra script competes for the same phone CPU. At the same time, user patience has not grown.
- Most traffic is mobile. In India and many other markets, a large share of users are on mid-range Android phones and changing 4G/5G signal. A page that feels instant on a developer laptop can feel broken on these devices.
- Speed affects revenue. Slow loading increases bounce rate, and slow taps make people abandon carts and forms.
- Search visibility. Core Web Vitals are part of Google's page experience signals. When content quality is similar, a better experience can help you stand out.
- AI features add weight. Chat widgets, streaming responses and client-side AI libraries are often heavy. Loading them carelessly hurts LCP and INP for every visitor, even those who never use the feature.
- Real results are measurable. Google's case study on The Economic Times reports that after passing the Core Web Vitals thresholds, the site saw an overall 43% better bounce rate.
Performance is not only about a score. It is about whether a real person on a real phone can read, tap and buy without frustration.
The three metrics at a glance#
| Metric | Measures | Good |
|---|---|---|
| LCP | Loading: when the biggest content appears | ≤ 2.5 s |
| INP | Responsiveness: delay after taps and clicks | ≤ 200 ms |
| CLS | Visual stability: unexpected layout shifts | ≤ 0.1 |
Values are judged at the 75th percentile of real visits: 3 out of 4 users should get a "good" experience. "Poor" starts above 4 s for LCP, 500 ms for INP and 0.25 for CLS.
When each metric happens#
Loading metrics fire early in the visit. INP and CLS keep counting until the user leaves, so a page can load fast and still fail because of a slow button or a late-loading banner.
Supporting metrics you should also watch#
These are not Core Web Vitals, but they explain why a vital is bad:
| Metric | What it tells you | Good target |
|---|---|---|
| TTFB (Time to First Byte) | How fast the server starts responding | ≤ 0.8 s |
| FCP (First Contentful Paint) | When the first text or image appears | ≤ 1.8 s |
| TBT (Total Blocking Time) | Lab-only measure of main-thread blocking; a proxy for INP | ≤ 200 ms |
Where performance matters most: use cases#
| Type of site | Metric that usually hurts most | Why |
|---|---|---|
| E-commerce product pages | LCP and INP | Big product images, heavy filters, "Add to cart" must feel instant |
| News and blogs | CLS and LCP | Ads and embeds push content down; hero images load late |
| Landing pages and ads traffic | LCP | Paid visitors leave if the first screen is empty |
| SaaS dashboards | INP | Large tables, charts and state updates block the main thread |
| Forms and checkout | INP and CLS | Validation lag and shifting buttons cause wrong taps |
| Sites with AI chat or widgets | INP and LCP | Large third-party scripts load on every page |
LCP: Largest Contentful Paint#
LCP is the time until the largest image or text block in the viewport is drawn. On most pages that is the hero image, a banner or the main heading.
Break LCP into its four parts#
LCP is the sum of four delays. Measure each one (the DevTools Performance panel and PageSpeed Insights show this breakdown) and fix the biggest part first instead of guessing.
How to improve LCP#
- Don't lazy-load the hero image.
loading="lazy"on the LCP image delays it. Lazy-load only images below the fold. - Tell the browser it is important: add
fetchpriority="high"to the LCP image. - Let the browser discover it early. If the image comes from CSS or JavaScript, preload it in the
<head>. - Serve the right size and format: responsive
srcset, modern formats like WebP or AVIF, and compression. - Reduce server response time (TTFB): caching, a CDN and less work before the first byte.
- Remove render-blocking resources: inline critical CSS,
defernon-essential scripts.
<!-- In the <head>, only if the hero image is not in the HTML -->
<link rel="preload" as="image" href="/hero-800.webp" fetchpriority="high">
<img
src="/hero-800.webp"
srcset="/hero-400.webp 400w,
/hero-800.webp 800w,
/hero-1600.webp 1600w"
sizes="100vw"
width="1600" height="900"
fetchpriority="high"
alt="Team working on laptops">INP: Interaction to Next Paint#
INP replaced First Input Delay (FID) as a Core Web Vital in March 2024. It looks at all clicks, taps and key presses during a visit and reports one of the slowest: the time from the interaction until the screen visibly updates.
The usual cause of a bad INP is a long task: JavaScript that keeps the main thread busy for more than 50 ms, so the browser can't respond.
How to improve INP#
- Do less on each interaction. Update the UI first, then do heavy work later.
- Break up long tasks so the browser can paint in between.
- Ship less JavaScript: code-split, remove unused libraries, and audit third-party scripts.
- Load heavy widgets on demand. Load a chat or AI assistant script only when the user opens it, not on page load.
- Avoid huge DOM updates; virtualise long lists.
button.addEventListener("click", async () => {
showSpinner(); // visible feedback first
// let the browser paint before heavy work
await new Promise((r) => setTimeout(r, 0));
const result = expensiveCalculation();
render(result);
});Newer browsers also offer scheduler.yield() for the same purpose; check support before relying on it, and keep a fallback like the one above.
In React, mark non-urgent updates with useTransition so typing and clicks stay responsive while a large list re-renders:
const [isPending, startTransition] = useTransition();
function onSearch(e) {
setQuery(e.target.value); // urgent: update the input
startTransition(() => {
setResults(filterProducts(e.target.value)); // can wait
});
}CLS: Cumulative Layout Shift#
CLS measures how much visible content moves unexpectedly. Everyone has tapped the wrong button because an ad loaded and pushed the page down; that is layout shift.
How to improve CLS#
- Always set dimensions on images and videos with
widthandheightattributes, or CSSaspect-ratio, so space is reserved before they load. - Reserve space for ads, embeds and banners with a fixed minimum height.
- Don't insert content above existing content unless the user asked for it.
- Load web fonts carefully: use
font-display: swaporoptional, and preload key fonts to reduce text reflow. - Animate with
transform, not withtop,left,widthorheight.
.ad-slot {
min-height: 250px; /* reserve space */
}
.video {
aspect-ratio: 16 / 9;
width: 100%;
}How to measure#
| Type | Tools |
|---|---|
| Field data (real users) | PageSpeed Insights, Search Console, the web-vitals library |
| Lab data (one test run) | Lighthouse, Chrome DevTools Performance panel |
Field data is what counts for ranking and reflects real devices and networks. Lab data is great for debugging, but a fast laptop on office Wi-Fi often hides problems your users see. Lighthouse can't measure INP directly, since there is no real user clicking; it reports Total Blocking Time as a proxy.
import { onLCP, onINP, onCLS } from "web-vitals";
function send(metric) {
navigator.sendBeacon("/analytics", JSON.stringify({
name: metric.name,
value: metric.value,
rating: metric.rating, // "good" | "needs-improvement" | "poor"
page: location.pathname,
}));
}
onLCP(send);
onINP(send);
onCLS(send);Test on a mid-range Android phone or with CPU throttling in DevTools. Most of your users are not on a flagship device, and INP problems show up there first.
How to manage performance as a team#
Most sites get fast once, then slowly get slow again as new features, images and scripts are added. The fix is a repeatable loop that everyone follows, not a one-time cleanup.
1. Measure real users first#
Start with field data: Search Console's Core Web Vitals report, PageSpeed Insights, and your own web-vitals data. Group results by page type (home, product, article, checkout) so you know where the problem is, not just that one exists.
2. Find the real bottleneck#
Open the slow page in Chrome DevTools with CPU and network throttling. The Performance panel shows live LCP, INP and CLS values, the LCP breakdown, long tasks and which element shifted. Fix what the data points to.
3. Fix the biggest problem first#
One large fix (a lazy-loaded hero image, a 300 KB chat script on every page) usually beats ten tiny tweaks. Re-measure after every change.
4. Guard with performance budgets#
A performance budget is a limit your team agrees on, such as "LCP under 2.5 s on the lab test", "no more than 170 KB of JavaScript on the home page" or "no new layout shift". Enforce it automatically so a pull request cannot quietly make the site slower.
With Lighthouse CI, add a lighthouserc.json to your repository:
{
"ci": {
"collect": {
"startServerCommand": "npm run start",
"url": ["http://localhost:3000/"],
"numberOfRuns": 3
},
"assert": {
"assertions": {
"largest-contentful-paint": ["error", { "maxNumericValue": 2500 }],
"cumulative-layout-shift": ["error", { "maxNumericValue": 0.1 }],
"total-blocking-time": ["warn", { "maxNumericValue": 200 }]
}
},
"upload": { "target": "temporary-public-storage" }
}
}Then run it on every pull request with GitHub Actions:
name: Lighthouse CI
on: [pull_request]
jobs:
lhci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run build
- run: npx @lhci/cli autorun5. Ship and compare#
After each release, compare field data before and after. Lab tests catch most regressions, but only real-user data confirms the fix worked for your audience.
6. Monitor and alert#
Send web-vitals data to your analytics or a monitoring tool and set alerts, for example "p75 INP on product pages above 200 ms for two days". Make one person or team the owner of each key page type so alerts reach someone who can act.
Framework tips#
- Next.js: use
next/imagewithpriorityon the hero image,next/fontto avoid font shifts, Server Components to send less JavaScript, andnext/dynamicto load heavy client components on demand. - React: use
useTransitionfor heavy updates, memoise expensive lists, and virtualise long tables. - Any site: load third-party scripts with
deferor after user interaction, self-host critical fonts, and compress images in your build pipeline.
Performance checklist#
- Hero image is not lazy-loaded and has
fetchpriority="high". - Images are WebP or AVIF, sized with
srcset, and havewidthandheight. - Pages are served from a CDN with caching; TTFB is under 0.8 s.
- No render-blocking JavaScript in the
<head>; critical CSS is inlined. - Third-party and AI widgets load only when needed.
- No long tasks over 50 ms during common interactions.
- Space is reserved for ads, embeds and banners.
- Real-user metrics are collected and alerted on.
- Lighthouse CI or a similar check runs on every pull request.
Key takeaways#
- LCP ≤ 2.5 s, INP ≤ 200 ms, CLS ≤ 0.1, measured at the 75th percentile of real users.
- Performance matters more today because most users are on mobile and modern sites, including AI features, ship more JavaScript than ever.
- Fix LCP by finding its slowest part: server time, late discovery, download size or render blocking.
- Fix INP by keeping interactions light, breaking up long tasks and loading heavy widgets on demand.
- Fix CLS by reserving space for images, ads and embeds.
- Manage performance as a loop: measure real users, find the bottleneck, fix, guard with budgets and Lighthouse CI, ship and monitor.