Core Web Vitals are Google's three measurements of how a page feels to real visitors: how quickly the main content appears, how quickly the page responds to input, and how stable the layout is while it loads. They affect search visibility a little and conversion a lot. A slow, jumpy page loses visitors long before it loses rankings.

Next.js gives you good defaults, but the App Router also makes it easy to undo them: one "use client" at the top of a layout, one unoptimised hero image or one heavy third-party script can push a page out of the "good" range. This is the checklist we run on our own Next.js projects before launch.

The three metrics and their targets

Google measures each metric at the 75th percentile of real visits, on mobile and desktop separately. A page is "good" when:

MetricWhat it measuresGood
Largest Contentful Paint (LCP)When the largest visible element (usually the hero image or headline) has rendered2.5 s or less
Interaction to Next Paint (INP)How long the page takes to respond visually to taps, clicks and key presses200 ms or less
Cumulative Layout Shift (CLS)How much visible content moves unexpectedly while the page is used0.1 or less

INP replaced First Input Delay as a Core Web Vital in March 2024, and it is stricter: it looks at interactions throughout the visit, not just the first one.

Measure the right thing first

  • Field data comes from real Chrome users and is what Google uses. Find it in Search Console under Core Web Vitals, or in PageSpeed Insights at the top of the report. New or low-traffic sites may not have enough data yet.
  • Lab data comes from a single simulated test (Lighthouse). It is useful for finding problems, but a lab score of 100 does not guarantee good field data.
  • Always test mobile, on a throttled connection or a real mid-range phone. Most problems only appear there.

LCP: get the main content on screen fast

  1. Keep pages as server components by default. Server components send HTML, not JavaScript, so the browser can paint content before any of your React code downloads. Push "use client" down to the smallest interactive component (a menu button, a form), not the whole page or layout.
  2. Render the hero on the server. If your headline only appears after a client-side animation library loads, it is late. Make sure the LCP element is in the initial HTML. Avoid starting the hero at opacity: 0 and fading it in with JavaScript; the browser may not count it as painted until the animation runs.
  3. Use next/image with priority for the hero image. This preloads it and skips lazy loading. Use it on one or two images per page only.
  4. Give images correct sizes. Without it, a phone may download an image sized for a desktop. For a full-width hero, sizes="100vw" is right; for a card in a three-column grid, something like (max-width: 768px) 100vw, 33vw.
  5. Serve modern formats. Set images.formats to ['image/avif', 'image/webp'] in next.config.js.
  6. Load fonts with next/font. It self-hosts the font files, removes the request to an external font service and adds font-display: swap behaviour, so text appears immediately.
  7. Cache what you can. Pages that do not change per visitor should be statically rendered or revalidated (export const revalidate = 3600), so the server returns HTML instantly instead of rendering on every request.
  8. Check your server response time. If the HTML itself takes a long time to arrive (Time to First Byte), nothing else can be fast. Put the server close to your visitors or behind a CDN, and avoid slow database calls in the critical render.

INP: keep the main thread free

  1. Ship less JavaScript. Every client component and library adds work on the main thread. Run next build and look at the "First Load JS" column; investigate any route that is much larger than the others.
  2. Lazy-load heavy, below-the-fold components with next/dynamic: carousels, maps, 3D scenes, chat widgets. Use ssr: false for anything that only works in the browser.
  3. Keep event handlers light. A click handler that filters a long list, re-renders a large tree or writes to storage synchronously can block the next paint. Use useTransition for updates that can wait, or debounce typing in search fields.
  4. Watch animation libraries. Scroll-linked animations that run JavaScript on every scroll event compete with input handling. Prefer CSS transforms and opacity, and let the browser animate them.
  5. Delay third-party scripts. Use next/script with strategy="afterInteractive" or "lazyOnload" for chat widgets, heatmaps and similar tools. Load only the ones you actually use.
  6. Profile real interactions. In Chrome DevTools, record a performance trace while you tap the menu, open the form and type. Long tasks (over 50 ms) around those interactions are your INP problems.

CLS: stop the page from jumping

  1. Give every image dimensions. next/image requires width and height or fill inside a sized container, which reserves space. Keep it that way for logos and icons too.
  2. Reserve space for anything that loads late: embeds, iframes, ad slots, 3D canvases, cookie banners. Set a minimum height on the container.
  3. Avoid inserting content above existing content after load, such as a banner that pushes the page down. Overlay it instead, or reserve its space from the start.
  4. Use next/font. It calculates fallback font metrics so the text does not reflow when the web font arrives.
  5. Animate with transform, not with top, left, height or margin, which move other elements.

App Router specifics worth checking

  • loading.tsx and Suspense: streaming lets the page shell appear while slow data loads, which helps perceived speed. Make sure the skeleton has the same size as the final content, or you trade a slow LCP for layout shift.
  • Layouts are shared: anything heavy in app/layout.tsx is paid for on every page. Keep global providers and scripts to a minimum.
  • Metadata belongs on the server: use export const metadata or generateMetadata in server files. A "use client" page cannot export metadata, so put it in a small server layout.tsx next to it.
  • Route size after builds: check the build output after every major dependency is added, not just before launch.

Third-party scripts: decide, do not accumulate

Analytics, chat, ads, heatmaps and tag managers are the most common reason a fast site becomes slow months after launch. For each script, ask what decision it informs, who looks at it, and whether it can load later. Remove the ones nobody uses.

When a script must be in the initial HTML (for example an ad or verification script that a provider requires in the head), load it with async so it does not block rendering, and reserve space for anything it inserts into the page.

The pre-launch checklist

  • Pages are server components; "use client" is limited to small interactive pieces.
  • The LCP element is in the server HTML and is not hidden behind a JavaScript animation.
  • The hero image uses next/image with priority and correct sizes.
  • Fonts use next/font.
  • Static pages are statically rendered or revalidated.
  • Heavy below-the-fold components are loaded with next/dynamic.
  • Third-party scripts are audited and loaded with the right strategy.
  • Every image, embed and canvas has reserved space.
  • Lighthouse mobile run on the home page and the two most important templates.
  • A real mid-range phone test on mobile data.
  • Search Console Core Web Vitals checked again four weeks after launch.

Performance is never "done", but a site that passes this list at launch stays fast much longer. If your Next.js site is slower than it should be, we can review it for you. For sites that use 3D, see our guide to Three.js without hurting performance.