Data
How to Improve LCP, INP and CLS: A Practical Fix Guide
Knowing what LCP, INP and CLS are is useful. Knowing which fix to make first is what actually moves the numbers. This is the practical companion to our Core Web Vitals explainer: the specific changes that improve each metric, ordered by impact, with what to measure before and after.
One principle runs through all of it: fix what fails in field data, not what looks bad in a lab report. Run your key pages through PageSpeed Insights, note which of the three metrics fails in the field-data panel, and start there. Fixing a metric that already passes is polishing; fixing the one that fails is progress.
Before you touch anything: measure
You cannot improve what you haven't baselined. Before making a single change:
- 01Run PageSpeed Insights on your key page templates — homepage, your top landing page, a product or article page, and your checkout or contact page. Averages across the whole site hide the templates that hurt.
- 02Record the field-data numbers for LCP, INP and CLS, mobile first. These are your "before."
- 03Note which metric fails and by how much. The size of the gap tells you how aggressive the fix needs to be — a CLS of 0.4 needs different medicine than a CLS of 0.12.
- 04Use the lab diagnostics to identify the specific culprits — which image is the LCP element, which script blocks rendering, which element shifts.
Keep this baseline somewhere you can find it in a month. You will need it.
Fixing LCP: make the main content appear faster
LCP is about one thing: how long until the biggest visible element renders. Almost every LCP fix is about the hero — the image, the headline, or the video poster that dominates the first screen.
Highest impact first:
- Optimize the hero image. This is the single most common LCP win. Compress it properly, serve it in a modern format (AVIF or WebP), and size it for the screens that actually visit — a 4000-pixel-wide banner shown on a phone is pure waste. If your hero is a background video, consider whether it earns the seconds it costs; very often it doesn't.
- Never lazy-load the LCP element. Lazy loading is great for below-the-fold images and actively harmful for the hero. The browser should discover and load your main image as early as possible — give it
fetchpriority="high"and, on key pages, preload it. - Reduce server response time. If the server takes a second to answer, nothing else can start. Caching (page cache, and a CDN in front of it) is the usual fix; if your hosting plan is the bottleneck, no amount of image compression will save you.
- Remove render-blocking resources. CSS and JavaScript in the
<head>that the page doesn't need immediately will hold up rendering. Defer non-critical scripts, inline only the CSS needed for the first screen, and question every third-party tag loading before the content. - Don't build the hero in client-side JavaScript. If your headline and hero image only appear after a JavaScript framework finishes booting, your LCP is hostage to that boot time. Server-render the first screen.
Work through these in order and re-test in the lab after each change. LCP usually moves in visible steps, which makes it the most satisfying metric to fix.
Fixing INP: make the page respond faster
INP is the trickiest of the three because it isn't about loading — it's about the browser being too busy to answer when a visitor taps something. The enemy is main-thread work: JavaScript executing, styles recalculating, layouts reflowing while the user waits.
Highest impact first:
- Ship less JavaScript. Audit what actually runs on the page. Unused libraries, duplicate analytics snippets, and features loaded "just in case" all compete for the same main thread. Split bundles so each page loads only what it uses, and defer everything that isn't needed for the first interaction.
- Break up long tasks. Any JavaScript task running longer than about 50 milliseconds is a window where the page can't respond. Split heavy work into smaller chunks (the browser can then handle input between them), and move genuinely heavy computation — image processing, complex filtering — into a web worker, off the main thread entirely.
- Tame third-party scripts. Chat widgets, review widgets, personalization tools and tag managers are the classic INP killers because they run on their schedule, not yours. Load them after the page is interactive, delay them until first scroll or first interaction, and remove the ones nobody can justify.
- Keep event handlers light. If a tap triggers a handler that re-renders half the page synchronously, INP will notice. Debounce rapid handlers (search-as-you-type, resize), and avoid doing layout work inside handlers that run on every keystroke.
- Lazy-hydrate below the fold. On framework-heavy sites, don't make the entire page interactive before the visitor needs it. Hydrate what's visible first; the rest can wait until it scrolls into view.
INP is measured across the whole visit, so test by using the page — open menus, submit forms, scroll through filters — not just by loading it. The lab's "total blocking time" is a decent proxy while you iterate.
Fixing CLS: stop the page from jumping
CLS is the most straightforward metric to fix because it's almost entirely about discipline, not performance. The rule is simple: the browser should know how much space everything needs before it arrives.
- Give every image, video and iframe explicit dimensions —
widthandheightattributes, or anaspect-ratioin CSS. Without them, the page reserves zero space and then shoves everything down when the media loads. - Handle web fonts properly. Late-loading fonts that reflow paragraphs are a classic CLS source. Use
font-display: swapso text renders immediately in a fallback, preload your key fonts, and consider tuning the fallback to match metrics so the swap doesn't shift lines. - Reserve space for ads, embeds and dynamic content. Anything injected by a third party — ad slots, social embeds, related-content widgets — should sit inside a container with a minimum height. An ad that pushes the article down when it arrives is a CLS failure you chose.
- Never insert content above existing content. Cookie banners, announcement bars and "we've updated our terms" notices that appear at the top and shove the page down are entirely avoidable: reserve the space, animate with transforms (which don't trigger layout), or place them where they don't displace anything.
- Use transform-based animations. Animating
top,left,widthormarginforces the browser to re-layout the page on every frame. Animatingtransformandopacitydoesn't. This one change fixes a surprising number of CLS issues on animated sites.
CLS often goes to near-zero in a single focused pass, because each fix is independent — there's no complex interaction between them.
The priority order that actually works
When more than one metric fails, fix in this order:
- 01CLS first — it's the cheapest, fastest, and never makes anything else worse.
- 02LCP second — hero and server fixes usually produce the biggest visible improvement and often help INP indirectly (less render-blocking work means a freer main thread).
- 03INP last — it's the most invasive work (JavaScript architecture), so do it once the page is otherwise healthy.
And always fix the metric that fails in field data. A lab-only failure on a metric your visitors don't experience is a distraction from the one they do.
Measuring after: prove it worked
Re-run the same PageSpeed Insights tests on the same templates and compare against your baseline. Lab tests confirm the fix works mechanically — but remember the golden rule: field data is the verdict. CrUX field data is a 28-day rolling average, so don't expect it to move the day after you deploy. Verify in the lab immediately, then watch the field panel and your Search Console Core Web Vitals report over the following weeks.
If a fix doesn't move the lab number, it won't move the field number either — go back and check whether you fixed the actual culprit or a bystander. The diagnostics tell you exactly which element or script is responsible; trust them over intuition.
Fix the metric that fails in field data. The rest is polishing.
When it stops being a DIY job
Everything above is genuinely doable — right up until it isn't. The line is usually one of these: the fixes require theme or template code you don't own, the JavaScript architecture needs restructuring rather than trimming, or you've done the obvious cleanup and the numbers barely moved (which means the real culprit is hiding somewhere the diagnostics point at but you can't safely touch).
That's the point where a proper speed optimization engagement earns its keep: a full audit on your real-user data, fixes implemented in priority order, and before-and-after proof on the field numbers — not just a better lab score.