Largest Contentful Paint (LCP) is the Core Web Vital that best matches what visitors feel when a page opens: how quickly does the main content appear? For most WordPress sites, that main content is a hero image, a featured image or a large heading. The good news is that WordPress core now does a lot of LCP-friendly work automatically, and the remaining improvements are very achievable once you know where the time actually goes. This WordPress LCP optimization guide walks you through measuring LCP, understanding its four subparts, using the features WordPress already provides, and applying targeted fixes that make a real difference.
What Is Largest Contentful Paint?
LCP measures the time from when a visitor starts loading a page until the largest image, video or text block in the viewport is rendered. It is one of the three Core Web Vitals, alongside Interaction to Next Paint (INP) and Cumulative Layout Shift (CLS). Google’s guidance is straightforward:
| LCP rating | Threshold |
|---|---|
| Good | 2.5 seconds or less |
| Needs improvement | Between 2.5 and 4.0 seconds |
| Poor | More than 4.0 seconds |
The target is to reach a good LCP for at least 75% of page visits, measured from real users. If you have already tuned responsiveness with our INP optimization guide, LCP is the natural next step.
The Four LCP Subparts: Where the Time Really Goes
The most useful mindset shift for LCP optimization is to stop thinking of LCP as one number. Every LCP time can be split into four consecutive subparts that add up to the total:
- Time to First Byte (TTFB) – from the start of navigation until the first byte of HTML arrives.
- Resource load delay – the gap between TTFB and when the browser starts downloading the LCP resource (for example the hero image).
- Resource load duration – how long the LCP resource takes to download.
- Element render delay – the time between the resource finishing and the element actually appearing on screen.
Research from the Chrome team based on real-world field data offers a helpful insight. Image download time is usually the shortest subpart. For sites with poor LCP, the median site waited around 1.3 seconds between receiving the HTML and starting the image request, several times longer than the image download itself. In other words, compressing images is good, but making sure the browser discovers and prioritises the LCP image early is often even better.
How to Measure LCP on Your WordPress Site
Field data: what real visitors experience
- PageSpeed Insights shows Chrome User Experience Report (CrUX) data for your URL and origin when enough traffic data exists.
- Google Search Console groups pages with similar issues in its Core Web Vitals report.
- Site Kit by Google can surface PageSpeed Insights data directly inside your WordPress dashboard.
Lab data: diagnosing the cause
Field data tells you whether you have an LCP issue; lab tools tell you why. In Chrome DevTools, open the Performance panel, record a page load and look at the LCP breakdown insight, which shows the four subparts for that load. Lighthouse also identifies the LCP element so you know exactly which image or heading to focus on. Always test on a throttled mobile profile, since that is where most sites have room to improve.

What WordPress Core Already Does for LCP
The WordPress Core Performance Team has steadily added LCP-friendly defaults. Knowing them helps you avoid duplicating work or accidentally undoing it:
- Responsive images (WordPress 4.4):
srcsetandsizeslet browsers download an appropriately sized file. - Native lazy loading (WordPress 5.5): images get
loading="lazy"by default, and later releases refined the logic so images likely to be in the initial viewport are not lazy-loaded. - fetchpriority=”high” (WordPress 6.3): WordPress adds a high fetch priority to the image it believes is the LCP image. Core Performance Team benchmarks found this typically improves LCP by around 5–10%.
- Modern formats: WebP uploads arrived in WordPress 5.8 and AVIF support in 6.5, when your server’s image library supports them.
- sizes=”auto” (WordPress 6.7): lazy-loaded images can let the browser use their real layout width to pick the best file from
srcset.
These defaults rely on heuristics, so it is always worth checking the rendered HTML of your hero image to confirm it has fetchpriority="high" and does not have loading="lazy".
Step-by-Step WordPress LCP Optimization
Work through the subparts in order. Each step builds on the one before it.
1. Reduce Time to First Byte
TTFB is the foundation of LCP. If the HTML arrives late, everything else starts late. The most effective improvements are:
- Full-page caching. Serving cached HTML is the single biggest TTFB win. Plugins such as LiteSpeed Cache on LiteSpeed servers, or your host’s built-in page cache, handle this well.
- A CDN to serve pages and assets from locations close to your visitors.
- A persistent object cache for dynamic and logged-in pages; see our Redis object cache guide.
- A lean database, including a trimmed set of autoloaded options.
- A modern PHP version; our guide to the best PHP version for WordPress explains the choices.
- Fewer redirects, such as avoiding chains between http, https, www and non-www versions.
2. Eliminate resource load delay
This is where many WordPress sites have their biggest opportunity. The goal is for the browser to discover the LCP image in the initial HTML and request it immediately with high priority.
- Use a real
imgelement for the hero. Images set as CSS backgrounds, or injected by JavaScript sliders, are discovered later. A Cover block with an image or a standard Image block is easy for the browser to find. - Never lazy-load the LCP image. Check that page builders, themes and optimisation plugins are not adding
loading="lazy"to above-the-fold images. - Confirm
fetchpriority="high"is on the correct image, not a logo or an image further down. - Avoid hero sliders and carousels where possible. A single, well-chosen image is usually faster and clearer for visitors.
- Self-host critical fonts if your LCP element is text, and preload the font used for the heading.
If WordPress chooses the wrong image, developers can fine-tune the attributes with the wp_get_loading_optimization_attributes filter, which controls the loading and fetchpriority attributes core assigns.
3. Shorten resource load duration
Once the image is requested early, make it quick to download:
- Upload sensibly sized originals. A 6000-pixel photo straight from a camera is rarely needed; around 2000 pixels wide is plenty for most full-width heroes.
- Serve modern formats. WebP and AVIF are usually much smaller than JPEG at similar quality. Our article on client-side media processing for HEIC, AVIF and WebP explains the latest upload improvements.
- Compress thoughtfully. A quality setting around 75–82 often looks identical to the original while saving many kilobytes.
- Make sure
sizesis accurate so mobile visitors get mobile-sized files. - Serve images from a CDN with good caching headers.
4. Minimise element render delay
Even after the image arrives, the browser cannot paint it while it is blocked by other work. Reduce render delay by:
- Trimming render-blocking CSS. Remove unused stylesheets on pages that do not need them and consider generating critical CSS with your optimisation plugin.
- Deferring non-essential JavaScript such as chat widgets, analytics extras and social embeds.
- Avoiding fade-in animations on the hero. An element that starts invisible and animates in can delay when LCP is recorded.
- Keeping the hero simple. A clean heading, image and button render faster than complex nested layouts.
Helpful Plugins from the WordPress Performance Team
The WordPress Performance Team publishes free, focused plugins, many of them available through the Performance Lab plugin. Several are directly relevant to LCP:
| Plugin | What it helps with |
|---|---|
| Image Prioritizer | Uses real visitor data to add fetchpriority="high" and preload links for the actual LCP image at each breakpoint, and refines lazy loading for images, background images and videos. |
| Modern Image Formats | Generates WebP or AVIF versions of uploads so visitors receive smaller files. |
| Enhanced Responsive Images | Improves the accuracy of the sizes attribute so browsers choose better files. |
| Speculative Loading | Prerenders or prefetches likely next pages so navigations feel instant. |
Speculative loading deserves a special mention: when the next page is prerendered before a visitor clicks, its LCP can be close to instant. Our guide to WordPress speculative loading covers how to configure it.
LCP Tips for Popular WordPress Setups
Block themes
Block themes load only the styles for blocks used on the page, which already helps render delay. Use the Cover or Image block for heroes, choose a modest image size in the block settings, and keep custom fonts to one or two families.
Page builders
Most modern page builders include performance settings for lazy loading, asset loading and fonts. Review those settings, exclude the hero image from lazy loading, and prefer image widgets over background images for the LCP element.
WooCommerce stores
On product pages the main product image is typically the LCP element. Make sure it is not lazy-loaded, upload consistent, well-compressed product photos, and keep gallery scripts lightweight. Category pages benefit from appropriately sized thumbnails.
Blogs and news sites
Featured images are usually the LCP element on single posts. A consistent featured image size, modern formats and full-page caching typically deliver a good LCP across the whole archive.
Your WordPress LCP Optimization Checklist
- Identify the LCP element on your key templates (home, post, page, product).
- Enable full-page caching and a CDN.
- Use a persistent object cache for dynamic pages.
- Confirm the hero image is an
imgelement in the initial HTML. - Check for
fetchpriority="high"and noloading="lazy"on the LCP image. - Serve WebP or AVIF at sensible dimensions.
- Defer non-critical JavaScript and trim unused CSS.
- Avoid hero animations and sliders where possible.
- Consider Image Prioritizer and speculative loading.
- Monitor field data monthly in Search Console or PageSpeed Insights.
For a real-world example of these steps working together, read our walkthrough on cutting a site’s load time from 12 seconds to 2.
Common LCP Pitfalls and How to Fix Them
Many LCP problems come from a handful of well-intentioned settings. Here are the ones we see most often, along with simple fixes.
Lazy loading everything
Applying lazy loading to every image sounds efficient, but it delays the most important one. Configure your optimisation plugin to skip the first one or two images, or exclude the hero image by class name. WordPress core already avoids lazy-loading images it expects in the initial viewport, so check that another tool is not overriding it.
Delaying all JavaScript, including what the hero needs
Delaying non-critical scripts until user interaction is a helpful technique. If your hero relies on a script to appear, though, delaying it can postpone LCP. Make sure above-the-fold content renders without JavaScript, or exclude that specific script from delay.
Oversized hero images
A beautiful hero photo can easily weigh several megabytes when uploaded straight from a camera. Resize it before uploading, let WordPress generate responsive sizes, and serve a modern format. Visitors will see the same image in a fraction of the time.
Uncached pages for logged-in users and carts
Page caches usually bypass logged-in sessions, carts and checkout pages, so those pages depend on server speed. This is where an object cache, a lean database and efficient plugins make the biggest difference.
Third-party embeds above the fold
Video players, maps and social feeds at the top of a page can be heavy. Replace them with a lightweight preview image that loads the full embed on click. Visitors still get the content, and the page appears much sooner.
How to Prioritise Your LCP Work
With so many possible improvements, it helps to tackle them in the order that delivers the most value for the least effort:
- Fix the template with the most traffic first, often the single post or product template. One template change can improve thousands of URLs at once.
- Address the largest subpart. If TTFB is two seconds, start with caching. If load delay is large, focus on discovery and priority.
- Make one change at a time and measure it, so you know what worked.
- Document your settings so future plugin or theme changes do not accidentally undo your gains.
- Review monthly using field data, and celebrate the wins with your team or clients.
Following this order keeps the work focused and makes progress visible quickly, which is motivating for everyone involved.
Frequently Asked Questions
Why is my mobile LCP much slower than desktop?
Mobile devices usually have slower networks and processors, and mobile layouts can make a different element the LCP. Test with mobile throttling, check which element is LCP on small screens, and make sure mobile visitors receive appropriately sized images.
Should I preload my hero image?
If the image is already a normal img in the HTML with fetchpriority="high", a preload is often unnecessary. Preloading is most helpful when the LCP image is discovered late, such as a CSS background. Image Prioritizer can add breakpoint-aware preloads automatically.
How long until improvements show in Search Console?
Field data is based on a rolling 28-day window, so expect changes to appear gradually over about four weeks. Lab tools reflect improvements immediately.
Conclusion
WordPress LCP optimization becomes much simpler once you break LCP into its four subparts. Start with a fast server response through caching, make sure the browser finds and prioritises your hero image right away, deliver that image in a modern, right-sized format, and keep the path to rendering clear of unnecessary CSS and JavaScript. WordPress core and the Performance Team’s plugins already handle much of the heavy lifting, so a few focused changes can move your site into the good range and give every visitor a faster first impression.
References and Further Reading
- Optimize Largest Contentful Paint – web.dev
- Common misconceptions about how to optimize LCP – web.dev
- Enhancing LCP image performance with fetchpriority – Make WordPress Core
- Image Prioritizer – WordPress.org plugin directory
- LCP breakdown – Chrome DevTools documentation
Images: Luke Chesser and Chris Liverani on Unsplash.

Leave a Reply