Google's Core Web Vitals program has been reshaping how developers think about performance since 2020. The three metrics are Largest Contentful Paint (LCP), Interaction to Next Paint (INP) and Cumulative Layout Shift (CLS). They are part of the page experience signals Google uses in search ranking, and the biggest recent change is INP, which replaced First Input Delay in March 2024.
Here is what changed, why it matters, and what you can do about it today.
The Three Core Metrics (Updated Thresholds)
Largest Contentful Paint (LCP) measures how long it takes for the largest visible content element to render, usually a hero image or the main heading. Good is under 2.5 seconds, Needs Improvement is 2.5-4.0s, and anything over 4.0s is Poor.
The most common LCP culprits:
- Render-blocking CSS and JavaScript delaying the first paint
- Hero images not using
loading="eager"andfetchpriority="high" - Images without explicit
widthandheightattributes causing layout recalculation - Slow server response times (TTFB above 600ms)
- No CDN, so images and assets come from a single origin region
Interaction to Next Paint (INP) replaced First Input Delay (FID) in March 2024, and its importance has only grown. Where FID measured only the first interaction on a page, INP measures the responsiveness of all interactions during a visit: clicks, taps and keyboard input. Good INP is under 200ms, and over 500ms is Poor.
INP failures most commonly come from:
- Long JavaScript tasks blocking the main thread (anything over 50ms)
- Synchronous operations inside event handlers (DOM queries, storage reads)
- Third-party scripts running heavy analytics or chat widgets on the main thread
- React and other virtual DOM frameworks doing unnecessary re-renders on every state change
Cumulative Layout Shift (CLS) measures visual stability, meaning how much page content moves unexpectedly as the page loads. Good CLS is under 0.1. Shifts that happen right after a user action, like expanding a section, do not count against you.
A Supporting Signal: Time to First Byte
PageSpeed Insights and the Chrome UX Report also show a supporting metric. It sits outside the three Core Web Vitals, yet a slow one drags all three down:
Time to First Byte (TTFB): how long the server takes to start answering. Good TTFB is under 800ms. It reflects server, CDN and caching performance.
LCP Optimization: The Highest-ROI Fixes
If your LCP is failing, start here:
1. Preload your LCP image. Add a <link rel="preload"> tag in the document <head> for the hero image. This kicks off the download before the browser finishes parsing the page:
<link rel="preload" as="image" href="/images/hero.webp"
fetchpriority="high">
2. Serve next-gen image formats. WebP files are usually 25-35% smaller than JPEG, and AVIF files are often smaller still. Use <picture> with AVIF first, WebP fallback, then JPEG:
<picture>
<source srcset="hero.avif" type="image/avif">
<source srcset="hero.webp" type="image/webp">
<img src="hero.jpg" alt="..." width="1200" height="600">
</picture>
3. Eliminate render-blocking resources. Load non-critical CSS asynchronously, and defer JavaScript that isn't needed for the first render. Use Chrome DevTools Coverage tab to identify unused CSS/JS.
INP Optimization: Unblocking the Main Thread
Long tasks are the primary INP killer. Use the scheduler.yield() API (now supported across all major browsers) to break long tasks into smaller chunks that yield control back to the browser between operations:
async function processLargeDataset(items) {
for (const item of items) {
processItem(item);
// Yield to browser between iterations
await scheduler.yield();
}
}
For third-party scripts, use the loading="lazy" pattern where possible, and load chat widgets and analytics tools using <script defer> or dynamically after the page becomes interactive.
Measuring Your Scores
Three tools every developer should run regularly:
- PageSpeed Insights: combines lab (Lighthouse) and field (Chrome UX Report) data for any URL
- Chrome DevTools Performance tab: detailed flame charts for diagnosing long tasks and layout shifts
- web-vitals JavaScript library: reports real user CWV data from your production traffic to your analytics pipeline
Field data (from real users) always takes precedence over lab data for ranking. A fast Lighthouse score with slow real-user LCP still hurts your rankings. Prioritize fixing what your actual users are experiencing.
Quick Wins Checklist
- Explicitly size all images (
widthandheightattributes) to prevent CLS - Use
font-display: swapon web fonts to prevent invisible text during load - Enable HTTP/3 on your hosting. It sets up connections faster, especially on mobile
- Set aggressive cache headers on static assets (
Cache-Control: max-age=31536000, immutable) - Deploy a CDN. Even a basic one, like Cloudflare's free tier, improves load times for visitors far from your server
- Reduce DOM size. Lighthouse flags pages with more than about 1,400 elements, and large pages respond more slowly
Core Web Vitals affect your search visibility and, more directly, whether visitors stay on your site. Scoring Good on all three is a clear goal, and since INP replaced First Input Delay, many sites that used to pass need work again.