WordPress Core Web Vitals: How to Fix LCP, INP and CLS

Quick Summary
- A page passes Core Web Vitals when, at the 75th percentile of real visits, LCP is 2.5 seconds or less, INP is 200 ms or less and CLS is 0.1 or less. INP replaced FID on March 12, 2024.
- Small sites often have no field data in PageSpeed Insights or Search Console, because CrUX only includes pages and origins with enough Chrome visitors. Lab data is then all you have, and it can't measure INP.
- WordPress skips lazy-loading the first content images (one since 5.9, three since 6.3) and, since 6.3, adds fetchpriority="high" to the likely LCP image. That only covers images WordPress itself prints, not CSS backgrounds or slider slides.
Improving your WordPress Core Web Vitals comes down to three Google metrics: how fast the main content appears (LCP), how quickly the page reacts to a tap (INP), and whether the layout jumps while it loads (CLS). This guide covers what each number means, how to read your own data, the WordPress causes and fixes, and this site’s own before and after.
The short version: a page passes when, at the 75th percentile of real visits, LCP is 2.5 seconds or less, INP is 200 milliseconds or less and CLS is 0.1 or less. On WordPress, the usual culprits are a heavy or lazy-loaded hero image, an uncached server, too much JavaScript and content that doesn’t reserve space. A caching plugin only fixes the server part.
What the Core Web Vitals actually measure
Nothing about the metrics is specific to WordPress: your WordPress Core Web Vitals are the same three numbers every site gets. The WordPress part is in the causes and the fixes.
- Largest Contentful Paint (LCP) measures loading: the time until the largest image, text block or video in the viewport has rendered.
- Interaction to Next Paint (INP) measures responsiveness. It watches clicks, taps and key presses during the whole visit and reports the slowest, ignoring rare outliers. Scrolling and hovering don’t count.
- Cumulative Layout Shift (CLS) measures how much visible content moves unexpectedly.
| Metric | Good | Poor |
|---|---|---|
| LCP | 2.5 s or less | Over 4 s |
| INP | 200 ms or less | Over 500 ms |
| CLS | 0.1 or less | Over 0.25 |
Values between the two columns need improvement. Google judges the 75th percentile of page loads, separately for mobile and desktop, so three visits in four must hit the target. All three metrics must be good.
INP replaced First Input Delay (FID) on March 12, 2024. FID only measured the first interaction’s delay, so advice that still mentions FID is out of date. On rankings, Google highly recommends good Core Web Vitals and says they align with what its core ranking systems seek to reward. Treat them as one part of page experience, not a substitute for useful content.
How to read your WordPress Core Web Vitals data
Core Web Vitals field data vs lab data
Field data comes from real Chrome users, collected in the Chrome User Experience Report (CrUX) over a rolling 28 days. Lab data comes from Lighthouse, which loads your page once on a simulated device and network. Only field data decides whether you pass. Lab data is for diagnosis, because it’s repeatable and shows why a page is slow.
The lab has blind spots, though. Nobody clicks during a test, so it can’t measure INP, and Lighthouse reports Total Blocking Time (TBT) as a stand-in. It also misses shifts after the load.
A small site may have no field data at all. CrUX only includes pages and origins with enough visitors, and Google doesn’t publish the threshold. It also counts only opted-in Chrome users on desktop and Android, so iPhone visitors never contribute. For a new site, lab data is often the only view of your WordPress Core Web Vitals.
PageSpeed Insights and Search Console
In PageSpeed Insights, start with the mobile results. The top section shows CrUX field data for the URL, or for the whole origin if the URL has too little. With no origin data either, the section is missing. Below it, a Lighthouse lab run gives a performance score, where 90 or above is good. Run it three or four times, because scores vary between runs. Also test a blog post, a builder page and, on a shop, a product page.
If you have field data, Search Console’s Core Web Vitals report gives the best overview of your WordPress Core Web Vitals. It groups URLs with a similar experience, so one template fix can move hundreds of pages. Fix everything marked Poor first. After a fix goes live, start validation, and Search Console then monitors those URLs for 28 days. “No data available” usually means you haven’t reached the CrUX threshold yet, not that something is broken.
Fixing LCP on a WordPress site
First find your LCP element: the Lighthouse report in PageSpeed Insights identifies it.
Oversized hero images
Size the hero for the screen it’s shown on. Images printed through wp_get_attachment_image() get srcset and sizes attributes, so a phone can pick a smaller file, as long as the sizes value matches the real layout. Then compress the file and use WebP or AVIF, as web.dev recommends.
Lazy-loading the hero image
Lazy-loading makes the browser wait until an image nears the viewport. That suits images further down, but web.dev is blunt: never lazy-load your LCP image. WordPress core has adjusted its defaults over time:
- WordPress 5.5 (2020) added
loading="lazy"by default to content images and images printed withwp_get_attachment_image(). - Version 5.9 stopped lazy-loading the first content image, because lazy-loading images in the first viewport had made LCP slightly worse.
- In 6.3, core raised that limit to three images, counted header images before the loop, and began adding
fetchpriority="high"to the likely LCP image if it’s larger than 50,000 square pixels.
There’s a catch: core only adjusts images that WordPress itself prints. A hero set as a CSS background, inserted by a slider script or hard-coded in a template gets none of this. The first two are also hidden from the browser’s preload scanner, so they start downloading late. Some optimization plugins add their own lazy-loading too, so check their exclusion settings. In a custom theme, set the priority yourself:
<?php
// Hero image in a theme template: print it through WordPress,
// then set the loading behavior yourself instead of relying on heuristics.
echo wp_get_attachment_image(
$hero_id, // attachment ID, e.g. from an ACF image field
'large', // a registered size close to the displayed width
false,
array(
'loading' => false, // omit loading="lazy"
'fetchpriority' => 'high', // fetch this image early
)
);Then check the page source: the hero should have the high priority and no lazy attribute. Use high priority on one or two images at most, because web.dev warns that more makes the hint useless.
A slow server or no page cache
Before the browser can request the hero, WordPress has to run PHP, load plugins and query the database. That’s time to first byte (TTFB). web.dev suggests 0.8 seconds or less, and warns that a high TTFB can make a 2.5-second LCP impossible. A page cache serves the finished page as a static file instead. So if your host doesn’t cache at the server level, a caching plugin is the first fix. A persistent object cache also helps with requests a page cache can’t serve. On a VPS, see my guide to installing Memcached on Debian.
Render-blocking CSS and web fonts
The browser won’t paint until it has the stylesheets in the page head, so large theme and plugin CSS pushes LCP back. Remove CSS you don’t use, and inline or defer the rest where you can. WordPress 6.9 helped classic themes by loading block styles on demand. In the core team’s tests with the bundled classic themes, that cut CSS on the sample page by 45% on average.
If your LCP element is a heading, fonts matter too. With font-display set to auto or block, text can stay invisible until the font arrives. My post on keeping text visible while web fonts load shows the WordPress fix.
Fixing INP: it’s mostly about JavaScript
An interaction has three phases: input delay, processing while event handlers run, and presentation delay until the next frame appears. All three grow when the main thread is busy. Tasks over 50 milliseconds count as long tasks, and the browser can’t respond to input while one runs. Even evaluating scripts during page load can delay an early tap.
Page builders and heavy themes
Builders wrap content in layers of elements, and a large DOM can make visual updates more expensive. In Elementor’s older section and column layout, for example, each structural element is an outer and an inner div. Elementor’s own advice is to switch to containers, which cuts a section from four div elements to two. When the builder itself is the main weight, a custom theme is the bigger fix. That’s the kind of custom WordPress development I do.
Third-party scripts
Chat widgets, analytics, ad tags and heatmaps add JavaScript you don’t control, much of it on your main thread. List every third-party script, remove anything that doesn’t add clear value, and load the rest with async or defer. For chat, use a facade: a static button that looks like the widget and loads the real one only on click. The trade-off is that unread badges may not appear until then.
Sliders and carousels
A slider can hurt all three metrics. If its script inserts the first slide, the browser finds the LCP image late. Transitions that animate left or width shift the layout, and autoplay repeats the shift. web.dev’s advice is to put the first slide in the HTML, animate with transform, and replace any slider whose scripts run long. Often a static hero, or CSS scroll snap, does the job.
Fixing CLS: reserve the space before content arrives
Layout shifts happen when content appears or resizes late. The fix is nearly always to tell the browser how much room to keep:
- Images without dimensions. Since 5.5, WordPress fills in missing
widthandheighton content images, but only for attachments with awp-image-{ID}class. Images in templates, builder widgets and custom HTML still need them, or a CSSaspect-ratio. - Font swaps. A web font with different metrics from its fallback rewraps lines. Pick a similar fallback, tune it with
size-adjust, or usefont-display: optional. - Cookie banners. Don’t insert them above the content. Overlay them instead, fixed to the bottom of the screen.
- Ads and embeds. Reserve the slot with
min-height, and keep it when no ad fills it, because collapsing it shifts the page too.
/* Cookie banner: overlay it at the bottom instead of pushing content down */
.cookie-banner {
position: fixed;
right: 0;
bottom: 0;
left: 0;
z-index: 1000;
}
/* Ad or embed slot: reserve the space before (and without) the ad */
.ad-slot {
min-height: 250px;
}If your field CLS is worse than the lab’s, look for shifts after scrolling or opening a menu.
What caching plugins can and can’t do for WordPress Core Web Vitals
A caching plugin is worth having, but it only solves part of the problem:
| Problem | Can caching fix it? |
|---|---|
| Slow server response (TTFB) | Yes: a page cache serves stored HTML |
| Oversized hero image | No: resize and compress it |
| Lazy-loaded hero image | No, and a plugin’s own lazy-load can cause it |
| Heavy JavaScript | Partly: deferring helps, but test it |
| Missing image sizes, injected banners | No: fix the theme |
Settings that delay JavaScript until the first interaction need care, because they move that work into the visitor’s first tap, which is exactly what INP measures. Caching can also hide a slow backend, so web.dev suggests testing with the cache bypassed. This site already ran LiteSpeed Cache on the live server before the speed work below. Even so, the big gains came from an image and a loader, two things a cache doesn’t touch.
This site’s WordPress Core Web Vitals, before and after
In September 2026 I rebuilt nahidmahamud.com as a custom classic WordPress theme with ACF Flexible Content, replacing an Elementor and WP Rocket setup. On October 29 and 30 I measured and tuned it with PageSpeed Insights. These are mobile lab numbers from a simulated phone, because PageSpeed Insights showed no field data for the site yet.
| Measurement | Before | After |
|---|---|---|
| Mobile LCP | 6.8 s | 2.5 s, later 2.4 s |
| Mobile performance score | 70 | 93, later 95 |
| Hero portrait, 768 px WebP | 135 KB | 89 KB |
| Loader finished (slow 4G) | 5.7 s | 3.5 s |
| Loader minimum display time | 1.8 s | 0.8 s |
- I re-encoded the hero portrait at WebP quality 75, which made the 768-pixel version about a third smaller.
- The page loader stopped waiting for decorative images, so on slow 4G it finishes over two seconds sooner.
- I cut the loader’s minimum display time. A minimum keeps the loader up even when the page is ready, so that time was pure waiting.
On desktop, LCP is 0.7 seconds, CLS is 0 and Total Blocking Time is 20 to 40 milliseconds. There’s no INP figure, because the lab can’t measure it and there’s no field data yet.
Note the scale: the image saved 46 KB, while the loader changes saved whole seconds. A loader is meant to make waiting feel shorter, the kind of perceived speed I covered in designing websites that feel fast. But LCP ignores invisible elements, such as content at an opacity of 0. So if a loader keeps the page hidden, LCP can’t happen before it ends. If your theme has a preloader, test the page with it switched off.
The takeaway: a sensible order to fix Core Web Vitals
Most WordPress Core Web Vitals problems trace back to a short list, and the order matters because each step can cap the next:
- Measure your main templates on mobile, and note whether you have field data.
- Fix server response: turn on page caching and get TTFB under about 0.8 seconds.
- Fix the LCP element: right-sized, compressed, never lazy, high priority.
- Cut third-party scripts you don’t need.
- Reserve space for images, banners and fonts.
- Tackle heavy JavaScript from builders and sliders.
- Re-test, then wait 28 days for field data to catch up.
If you’d like a hand improving your WordPress Core Web Vitals, that’s part of my SEO and site speed work.
Sources
- Web Vitals (web.dev, updated October 31, 2024)
- Interaction to Next Paint becomes a Core Web Vital on March 12 (web.dev, 2024)
- Largest Contentful Paint (LCP) (web.dev, updated September 4, 2025)
- Optimize Largest Contentful Paint (web.dev, updated March 31, 2025)
- Interaction to Next Paint (INP) (web.dev, updated September 2, 2025)
- Optimize Interaction to Next Paint (web.dev, updated September 2, 2025)
- Optimize long tasks (web.dev, updated December 19, 2024)
- Cumulative Layout Shift (CLS) (web.dev)
- Optimize Cumulative Layout Shift (web.dev, updated February 7, 2025)
- Optimize Time to First Byte (web.dev, updated November 28, 2025)
- Why lab and field data can be different (web.dev)
- Efficiently load third-party JavaScript (web.dev)
- Best practices for carousels (web.dev)
- Understanding Core Web Vitals and Google search results (Google Search Central)
- Core Web Vitals report (Search Console Help)
- About PageSpeed Insights (Google for Developers)
- CrUX methodology (Chrome for Developers)
- Total Blocking Time (Chrome for Developers)
- Lighthouse performance scoring (Chrome for Developers)
- Largest Contentful Paint in Lighthouse (Chrome for Developers)
- Lazy load third-party resources with facades (Chrome for Developers)
- Lazy-loading images in 5.5 (Make WordPress Core, July 14, 2020)
- Enhanced lazy-loading performance in 5.9 (Make WordPress Core, December 29, 2021)
- Image performance enhancements in WordPress 6.3 (Make WordPress Core, July 13, 2023)
- WordPress 6.9 Frontend Performance Field Guide (Make WordPress Core, November 18, 2025)
- wp_get_attachment_image() (WordPress Developer Resources)
- Cache (WordPress Advanced Administration Handbook)
- Elementor performance tip: reduce your DOM size (Elementor, May 2024)

