Know the targets
A page is rated good when 75 percent of visits meet each threshold, measured separately for mobile and desktop.
- Largest Contentful Paint (LCP), for loading: 2.5 seconds or less.
- Interaction to Next Paint (INP), for responsiveness: 200 milliseconds or less.
- Cumulative Layout Shift (CLS), for visual stability: 0.1 or less.
48%
of mobile websites have good Core Web Vitals
Compared with 56% on desktop, using July 2025 field data. On phones, where many customers first meet a business, more than half of sites miss the mark.
Many sites miss these targets, particularly on phones: 48% of mobile websites have good Core Web Vitals, compared with 56% on desktop. Source: HTTP Archive Web Almanac 2025 (opens in a new tab).
Step 1: measure real visitors
Lighthouse is useful for debugging, but it is a lab test on one simulated device, and it cannot measure INP because nobody is interacting with the page. Field data shows what visitors experience. Check Search Console or PageSpeed Insights, then report your own numbers with the open-source web-vitals library.
import { onCLS, onINP, onLCP, type Metric } from 'web-vitals';
function report({ name, value, id }: Metric): void {
const body = JSON.stringify({ name, value, id, path: location.pathname });
navigator.sendBeacon('/analytics/vitals', body);
}
onLCP(report);
onINP(report);
onCLS(report);
Step 2: fix loading
On most marketing pages the LCP element is a hero image or headline, so that is where to begin.
- Do not lazy-load the hero image. Lazy loading delays the one image that matters most.
- Add fetchpriority="high" to it, and serve it in a modern format such as AVIF or WebP at the size it is displayed.
- Make sure the image URL is in the initial HTML, not injected later by JavaScript.
- Reduce server response time with caching and a CDN. Nothing paints until the HTML arrives.
<img
src="/images/hero-1200.avif"
srcset="/images/hero-800.avif 800w, /images/hero-1200.avif 1200w"
sizes="100vw"
width="1200"
height="630"
fetchpriority="high"
alt="Technician checking a delivery on a tablet"
>
Step 3: stop the layout moving
- Set width and height on every image and video so the browser reserves the space.
- Reserve room for cookie banners, embeds and ads before they load.
- Never insert content above what the visitor is reading, unless they asked for it.
- Choose fallback fonts with similar metrics, so text does not reflow when web fonts arrive.
Step 4: keep it responsive
INP is usually poor because the main thread is busy when someone taps. Audit third-party scripts first, since tag managers, chat widgets and trackers often cost the most and deliver the least. Remove what nobody uses, and load the rest after the page is interactive. For your own code, split long tasks so the browser can respond between chunks, and show visual feedback immediately, before any slow work starts.