Most advice about Core Web Vitals reads like a checklist someone copied from another checklist. Compress your images. Minify your CSS. Use a CDN. All true, and all strangely unhelpful when you’re staring at a Search Console report that says 340 of your URLs have a “poor” INP and you have no idea why.
This guide takes a different route. First we’ll get clear on what each metric actually measures, because once you understand that, the fixes stop feeling random. Then we’ll look at how to find the specific cause on your site, and finally go through 11 fixes, grouped by the metric they help. Every one of them is something that changes real user data, not just a lab score.
What are Core Web Vitals?
Core Web Vitals are three metrics Google uses to describe how a page feels to a real person: how fast the main content shows up, how quickly the page responds when you tap or click, and whether things jump around while you’re reading. They feed into Google’s page experience signals, and while great content still beats a fast page, poor scores can hold back pages that are otherwise competitive. More importantly, they line up pretty well with what makes users leave.

- Largest Contentful Paint (LCP) measures loading. It’s the time from when the user starts loading the page until the largest image or text block in the viewport is rendered. Good is 2.5 seconds or less.
- Interaction to Next Paint (INP) measures responsiveness. It looks at the delay between a user’s click, tap or key press and the next frame the browser paints, across the whole visit, and reports one of the worst. Good is 200 milliseconds or less. INP replaced the older First Input Delay metric in March 2024, and it’s much stricter, which is why so many sites suddenly saw red.
- Cumulative Layout Shift (CLS) measures visual stability: how much visible content moves unexpectedly. Good is 0.1 or less.
One detail matters a lot: Google assesses the 75th percentile of real visits, separately for mobile and desktop. So it isn’t enough for the page to be fast on your MacBook. Three out of four visits, including the ones on a mid-range Android phone on a train, need to hit the target. You can read the official definitions on web.dev’s Web Vitals page.
Field data vs lab data (and why your scores disagree)
This confuses nearly everyone at first, so let’s get it out of the way. There are two kinds of performance data:
- Field data comes from real Chrome users visiting your site, collected in the Chrome User Experience Report (CrUX). It’s what Search Console shows and what Google uses. It’s a rolling 28-day window, so fixes take weeks to fully show up.
- Lab data comes from a single simulated page load, like a Lighthouse run. It’s great for debugging because you can repeat it instantly, but it’s one device and one network setting.
PageSpeed Insights shows both on one screen: field data at the top (“Discover what your real users are experiencing”) and the Lighthouse lab score below it. When the two disagree, trust the field data for priorities and use the lab tools to investigate. A lab score of 98 means very little if your field INP is 450 ms, because Lighthouse doesn’t click anything, so it can’t really measure interaction delays at all.
If your site has enough traffic, also add the small web-vitals JavaScript library and send the numbers to your analytics. Its attribution build tells you which element was the LCP and which interaction caused the bad INP, which saves hours of guessing.
How to find what’s actually slow
Before fixing anything, find out which metric is failing and on which kind of page. In Search Console, the Core Web Vitals report groups similar URLs together. Usually one template (the blog post layout, the product page, the category page) causes most of the problems, and fixing that template fixes hundreds of URLs at once.
Then open a representative page in Chrome DevTools. The Performance panel shows live LCP, INP and CLS values as you use the page, and it highlights the LCP element and the layout shifts. Click around like a real user, open the menu, use the search box, and watch which interactions go over 200 ms. That’s usually enough to point you at the right fix below.
Fixing Largest Contentful Paint
The most useful way to think about Largest Contentful Paint is to split it into four parts. Each part has different fixes, so measuring which one is biggest tells you exactly where to spend your time.

1. Make the server respond faster
If the first byte of HTML takes 1.5 seconds to arrive, hitting 2.5 seconds for LCP is almost impossible. The first part of LCP is Time to First Byte, and it’s often the biggest one on WordPress and other server-rendered sites. Full page caching is the big win here: serving a ready-made HTML file is far faster than running PHP and database queries on every visit. Put a CDN in front of the site so visitors far from your server get a nearby copy, and remove redirect chains (http to https to www to a trailing slash adds up quickly on mobile).
2. Prioritise the LCP image
On most pages the LCP element is an image: a hero banner, a featured image, a product photo. The browser doesn’t know that image is important until it has parsed the HTML, built the layout and discovered it. You can help it in two ways. Add fetchpriority="high" to that image so the browser fetches it before other images, and make sure it is never lazy-loaded.
That second point is a very common mistake. Lazy loading is great for images further down the page, but many themes and plugins apply loading="lazy" to every image, including the one at the top. The browser then waits until layout is done before even starting the download. Removing lazy loading from the first image alone can cut a second off Largest Contentful Paint on slow connections.
<img src="/hero.avif" width="1200" height="675"
fetchpriority="high" alt="Product dashboard screenshot">
3. Send smaller images
This is the boring one, and it still matters. Serve modern formats (AVIF or WebP), use srcset and sizes so phones get a phone-sized image, and don’t ship a 3000 px wide photo into a 400 px slot. Image CDNs and most frameworks (including the Next.js image component) handle this for you if you let them.
4. Render the main content in HTML
If your page is rendered by JavaScript in the browser, the LCP element can’t appear until the JavaScript bundle has downloaded, parsed and run, and then fetched data. That’s the “render delay” part, and on client-side rendered apps it can be huge. Server-side rendering or static generation for the main content means the browser can paint it straight from the HTML. If you can’t change the rendering model, at least make sure the hero section doesn’t depend on a slow API call. There’s a real-world walkthrough of this in our post on getting a Next.js PageSpeed score of 100.
Fixing Interaction to Next Paint
INP problems almost always come down to one thing: the browser’s main thread is busy when the user interacts, so it can’t respond. The main thread runs your JavaScript, calculates styles and layout, and paints frames, one thing at a time. If a script is running a 300 ms task when the user taps a button, the tap waits.
5. Break up long tasks
Any task over 50 ms is considered a long task. The fix is to split heavy work into smaller chunks and give the browser a chance to handle input between them. Modern Chrome supports scheduler.yield() for exactly this; in other browsers a setTimeout of zero does a similar job.
async function processItems(items) {
for (const item of items) {
doExpensiveWork(item);
// Let the browser handle clicks and paint between items
if (globalThis.scheduler?.yield) await scheduler.yield();
else await new Promise(r => setTimeout(r, 0));
}
}
6. Ship less JavaScript
Every script you load has to be parsed and executed on the main thread, often right when users start interacting. Third-party scripts are usually the biggest offenders: chat widgets, A/B testing tools, heatmaps, social embeds, several analytics tools doing the same job. Go through them one by one and ask whether each is still earning its place. For your own code, split bundles by route and defer anything that isn’t needed for the first interaction.
7. Make event handlers respond first, work later
When a user clicks “Add to cart,” they need to see something happen right away. They don’t need the analytics event, the recommendations refresh and the local storage update to finish first. Update the visible UI immediately, then do the rest after the next paint. In React, that can mean using startTransition for non-urgent state updates. In plain JavaScript, it means moving the non-visual work into a setTimeout or a requestAnimationFrame followed by a timeout.
Also watch for code that reads layout (like offsetHeight) right after changing styles, in a loop. That forces the browser to recalculate layout again and again, a pattern called layout thrashing, and it can turn a simple click into a 400 ms freeze.
Fixing Cumulative Layout Shift
Layout shift is the most annoying problem for users and often the easiest to fix. Something loads late, takes up space, and pushes the content you were reading or about to tap further down the page.
8. Give every image and video dimensions
If an image has no width and height attributes, the browser doesn’t know how much space to reserve until the file arrives. When it does arrive, everything below jumps. Setting both attributes (or a CSS aspect-ratio) lets the browser reserve the right box from the start, even when the image is responsive and scaled by CSS.
9. Reserve space for ads, embeds and banners
If your site runs ads, this one matters a lot. Ad slots that collapse to zero height and then expand when an ad loads are one of the biggest sources of layout shift on the web. Give each slot a fixed minimum height matching the most common ad size for that position. The same goes for YouTube embeds, cookie banners and “subscribe” bars: either reserve their space or show them as overlays that don’t push content around. Never insert content above what the user is already looking at, unless it’s a response to their own action.
10. Stop web fonts from shifting text
When a web font loads and replaces the fallback font, text often changes width and line breaks, which shifts everything below. Preload your main font file so it arrives early, and use CSS font metric overrides (size-adjust, ascent-override and friends) on the fallback font so it takes up nearly the same space as the web font. Several frameworks, including Next.js with next/font, generate these overrides automatically.
One fix that helps all three Core Web Vitals
11. Keep your pages eligible for the back/forward cache
When a user taps back or forward, browsers can restore the previous page instantly from memory using the back/forward cache (bfcache). Those loads count in your field data, and they’re essentially perfect: instant LCP, no layout shift. A surprising number of sites block the bfcache without knowing it, usually through unload event listeners or Cache-Control: no-store headers on normal pages. Chrome DevTools has a “Back/forward cache” test under the Application panel that tells you exactly what’s blocking it.

How to verify your fixes
Field data updates slowly, so plan for that. After you deploy a fix:
- Check the lab result right away in PageSpeed Insights or Lighthouse to confirm the change did what you expected, especially for LCP and CLS.
- If you collect your own data with the web-vitals library, you’ll see the effect on real users within a day or two.
- In Search Console, use “Validate fix” on the affected issue. Google then monitors the URLs for the next 28 days.
- Write down what you changed and when. When the CrUX data moves three weeks later, you’ll want to know which change caused it.
A note for WordPress sites
WordPress powers a huge share of the web, and it has its own usual suspects. Page caching (from your host or a caching plugin) is the single biggest fix for slow server response. Since WordPress 6.3, core adds fetchpriority="high" to the image it thinks is the LCP image and skips lazy loading for it, but themes and page builders sometimes override that, so check the HTML of a real page rather than assuming.
Plugins are the other big factor. Each one can add its own scripts and styles to every page, whether that page uses them or not. A contact form plugin loading its JavaScript on blog posts, a slider library loaded site-wide for one homepage carousel, three different social sharing scripts: these add up, and they hurt Interaction to Next Paint most of all. Tools like Query Monitor show which plugins load what, and many performance plugins let you disable assets per page.
Finally, if you’re running ads, check the ad code’s settings for reserved space. Auto-placed ads are convenient, but they’re a common cause of layout shift. Fixed ad slots with a minimum height are much kinder to your CLS.
Which Core Web Vitals fix should you start with?
If you’re not sure where to begin, this order works for most sites. Fix the template with the most failing URLs first. For LCP, check whether the hero image is lazy-loaded and whether the server is slow, since those two cause the majority of problems. For CLS, add dimensions to images and fixed heights to ad slots. INP usually takes the longest, because it means looking at JavaScript, but auditing third-party scripts is a quick and often large win.
And keep perspective. Core Web Vitals are one signal among many. A fast page with thin content won’t rank, and a slightly slow page with the best answer on the internet often will. The reason to care is your users: faster, steadier pages keep people reading.
Frequently asked questions
Do Core Web Vitals affect Google rankings?
Yes, as part of the page experience signals, but the effect is modest compared to relevance and content quality. Think of good scores as a tiebreaker and as a way to keep visitors from leaving, not as a ranking shortcut.
Why is my PageSpeed score 95 but Core Web Vitals fail?
The score is lab data from one simulated load. Core Web Vitals in Search Console come from real users over 28 days, on all kinds of devices and networks. Lab tests also can’t measure INP properly, because they don’t interact with the page. Trust the field data.
How long until fixes show up in Search Console?
Usually two to four weeks, because the field data is a rolling 28-day window. Your own real user monitoring will show changes much sooner.
What replaced First Input Delay?
Interaction to Next Paint replaced First Input Delay as a Core Web Vital in March 2024. INP looks at all interactions during a visit and measures until the next frame is painted, so it catches slow pages that FID missed.
