Skip to content
Metevix
Core Web Vitals7 min read

Mastering Core Web Vitals: Complete INP, LCP & CLS Optimization Guide

Step-by-step developer techniques to achieve 100/100 Core Web Vitals in Next.js 16 and modern React applications.

DC

Devon Chen

Performance Engineer · Published

Google's Core Web Vitals directly impact organic search rankings and conversion rates. In 2026, **Interaction to Next Paint (INP)** has completely superseded FID, holding developers accountable for every long JavaScript task on the main thread.


1. Largest Contentful Paint (LCP) < 2.5s

LCP measures when the largest visual element in the viewport finishes rendering. Common culprits include oversized hero images, un-cached origin server responses, and late-discovered web fonts.

The LCP Checklist: - **Priority Image Loading**: Use `priority` on above-the-fold Next.js images. - **Modern Formats**: Serve AVIF or WebP images with responsive `sizes` attributes. - **Zero Render-Blocking CSS/JS**: Split vendor libraries and load analytics asynchronously.

import Image from "next/image";

export function HeroBanner() { return ( <Image src="/hero.webp" alt="Platform Showcase" priority fetchPriority="high" sizes="(max-width: 768px) 100vw, 50vw" width={1200} height={630} className="rounded-xl" /> ); } ```


2. Interaction to Next Paint (INP) < 200ms

INP measures responsiveness across the entire user session. Long tasks (>50ms) blocking the main thread cause UI freezes during button clicks or menu toggles.

How to Tame INP: 1. **Break Up Long Tasks**: Use `scheduler.yield()` or `setTimeout` to yield control back to the browser. 2. **Debounce Heavy Inputs**: Debounce search filter operations. 3. **Optimize React Re-renders**: Use `React.memo` and selective state placement.


3. Cumulative Layout Shift (CLS) < 0.1

Layout shifts happen when late-loading images or third-party widgets insert into the DOM without reserved dimensional placeholders.

/* Always reserve aspect ratio space for dynamic media */
.media-container {
  aspect-ratio: 16 / 9;
  width: 100%;
}

Measure your live mobile LCP and INP in real-time with the [Metevix Performance Engine](https://metevix.com/audit).

Instant Website Intelligence

Audit your site for this issue right now.

Metevix crawls your site, ranks what to fix by real impact, and verifies every fix automatically.