How to Fix LCP in WordPress: A Step-by-Step Guide

Largest Contentful Paint (LCP) measures when the biggest visible element on the page finishes rendering. Google counts 2.5 seconds or less as "good." It's the Core Web Vital WordPress sites fail most often, and the good news is that it usually comes down to a short list of fixable problems.

This guide shows you how to find your LCP element, figure out which part of LCP is slow, and apply the right fix.

Step 1: Find your LCP element

Run the page through PageSpeed Insights and open the diagnostics. Look for "Largest Contentful Paint element." It shows exactly which element was measured. On most WordPress sites it's one of these:

  • the hero or featured image
  • a background image set in CSS (common with page builders)
  • the main headline or first paragraph of text
  • a video poster image or slider's first slide

Check both mobile and desktop. They often have different LCP elements.

Step 2: Find which part is slow

PageSpeed Insights breaks LCP into four phases (the "LCP breakdown" insight). Each phase has a different fix:

Phase What's happening Usual WordPress cause
Time to First Byte Waiting for the server to send the HTML No page cache, or a slow host
Resource load delay The browser hasn't started downloading the LCP image yet The image is lazy-loaded, or hidden in CSS/JS
Resource load duration The image is downloading The image is too large or not in WebP/AVIF
Element render delay The image is downloaded but not shown yet Render-blocking CSS/JS, fonts, sliders

Fix the biggest phase first.

Step 3: Fix a slow Time to First Byte

If TTFB is a large share of your LCP:

  1. Add page caching if you don't have it. Use your host's server cache or one caching plugin, and turn on cache preloading.
  2. Add a CDN with full-page caching if your visitors are far from your server, such as Cloudflare APO.
  3. Test an uncached URL (add ?nocache= and a random number). If it's still over ~800 ms, the server itself is the bottleneck. Run our 5-minute host test and look at fast WordPress hosting.

More detail: Time to First Byte in WordPress.

Step 4: Fix resource load delay

This is the most common and easiest LCP fix in WordPress.

  • Exclude the LCP image from lazy loading. If PageSpeed says "Largest Contentful Paint image was lazily loaded," that's your problem. WordPress core skips lazy loading on the first content image, but themes, page builders and plugins often override it. Most caching and image plugins have an option to exclude the first image or "above the fold" images.
  • Preload the LCP image and add fetchpriority="high". WP Rocket, FlyingPress, Perfmatters and LiteSpeed Cache can do this automatically or per page.
  • Avoid CSS background images for the hero. The browser finds them late because it must download and parse the CSS first. If your page builder uses a background image, switch to a regular image element or preload it.
  • Don't put the hero in a JavaScript slider. The image won't load until the slider script runs. Use a static first image.

Step 5: Fix resource load duration

  • Compress the image and serve WebP or AVIF. See the best image optimization plugins.
  • Serve the right size. A 2,400-pixel-wide image on a 400-pixel phone screen wastes most of its bytes. WordPress's responsive srcset handles this if your theme uses it properly; CDN tools like Optimole do it automatically.
  • Use a CDN for images if your audience is spread out. See CDNs.

Step 6: Fix element render delay

  • Remove unused CSS and load critical CSS first. WP Rocket, FlyingPress and LiteSpeed Cache all do this.
  • Delay non-critical JavaScript (analytics, chat, ads) until interaction. Use your caching plugin or Flying Scripts.
  • Unload plugin assets on pages that don't need them with Perfmatters or Asset CleanUp.
  • If the LCP element is text, check your fonts: preload the main web font and use font-display: swap.

Step 7: Measure the right way

  • Re-run PageSpeed Insights after each change and check the lab LCP and breakdown.
  • Field data (the top of the report and Search Console) is a 28-day rolling window, so real-world improvement takes up to four weeks to show fully.
  • Track it over time with DebugBear if LCP matters to your revenue.

Quick checklist

  • Page caching on, with preload
  • Uncached TTFB under ~800 ms (otherwise, look at hosting)
  • LCP image not lazy-loaded
  • LCP image preloaded with high fetch priority
  • LCP image compressed, WebP/AVIF, correctly sized
  • No hero sliders or CSS background heroes
  • Unused CSS removed, non-critical JS delayed

For the bigger picture, read Core Web Vitals for WordPress.

Some links in this article are affiliate links. See our disclosure.

Enjoyed this article?

Share it with your network