Core Web Vitals are Google's measures of how a page feels to real visitors. They feed into search ranking signals, but the better reason to care is simpler: fast, stable pages keep people around. Next.js gives you strong tools for all three metrics, as long as you use them deliberately.

The three metrics

  • Largest Contentful Paint (LCP): how long the biggest element in the viewport, usually a hero image or headline, takes to appear. Good is 2.5 seconds or less.
  • Interaction to Next Paint (INP): how quickly the page responds visually after a tap, click or key press, across the whole visit. Good is 200 milliseconds or less. INP replaced First Input Delay (FID) as a Core Web Vital in March 2024.
  • Cumulative Layout Shift (CLS): how much the content jumps around while loading. Good is 0.1 or less.

Google assesses each metric at the 75th percentile of real visits, so a page passes only if three out of four visitors get a good experience.

Lab data versus field data

Lighthouse and PageSpeed Insights run a simulated test on one device. That is useful for debugging, but your real score comes from field data: actual visitors on actual phones and networks, reported through the Chrome UX Report and Search Console. A page can score 98 in the lab and still fail in the field if most of your visitors use mid-range Android phones on mobile data. Always check both.

Improving LCP

  1. Find your LCP element. PageSpeed Insights and Chrome DevTools both name it. Fix that element first.
  2. Prioritise the hero image. Use next/image and mark the above-the-fold image as high priority so it is preloaded rather than lazy-loaded. Lazy-loading the hero is one of the most common LCP mistakes.
  3. Serve the right size. Set the sizes attribute so phones download a phone-sized image, not the desktop one.
  4. Render on the server. Static generation and server components send ready HTML, so the browser can paint before any JavaScript runs.
  5. Self-host fonts with next/font. It removes the extra connection to a font server and inlines the font CSS.
  6. Cut server time. Cache data fetches, keep the database close to your server, and use a CDN for static pages.

Improving INP

INP suffers when the main thread is busy running JavaScript at the moment a user interacts.

  • Ship less JavaScript. Keep components on the server where possible, and only mark the interactive parts as client components.
  • Split heavy components. Load charts, editors and maps with next/dynamic so they are not part of the first bundle.
  • Break up long tasks. Work that takes more than 50 milliseconds blocks input. Split it, or move it to a web worker.
  • Keep updates cheap. Use startTransition for non-urgent state updates such as filtering a long list, so typing stays responsive.
  • Tame third-party scripts. Load analytics, chat widgets and tag managers with next/script using the afterInteractive or lazyOnload strategy.
  • Avoid expensive paint effects. Large blurs and backdrop filters over moving content make the frame after a tap slow to render, especially on phones.

Improving CLS

  • Give media a size. next/image requires width and height (or fill inside a sized container), which reserves space before the image arrives.
  • Reserve space for late content. Banners, cookie notices, ads and embeds should have a fixed slot rather than pushing content down.
  • Do not insert content above what the user is reading unless they asked for it.
  • Match fallback fonts. next/font adjusts the fallback font's metrics so text does not reflow when the web font loads.
  • Animate with transform and opacity only. Animating height, top or margin moves the layout and counts as shift.

Measure in production

Next.js exposes a useReportWebVitals hook in next/web-vitals that reports each metric from real visits. Send those numbers to your analytics, or use a service such as Vercel Speed Insights. Watch them per route: a fast home page can hide a slow product page.

In Search Console, the Core Web Vitals report groups URLs by status and shows which metric fails, which tells you where to start.

A checklist before every release

  • The LCP element is identified and loads with priority.
  • No above-the-fold image is lazy-loaded.
  • Fonts are self-hosted through next/font.
  • Heavy client components are loaded dynamically.
  • Third-party scripts load after the page is interactive.
  • Every image, video and embed has reserved space.
  • Field data is tracked per route, not just a lab score.

Performance is not a one-time task. Each new feature adds weight, so make these checks part of your normal release routine and the scores will stay green.