To improve Largest Contentful Paint (LCP) in WordPress, first identify the largest visible element in the viewport – usually a hero image or a main heading. Next, reduce server response time (TTFB), compress the image below 200 KB, disable lazy loading for it, load it with high priority and defuse render-blocking scripts. A good benchmark is 2.5 seconds or less.
If your website still shows a blank space instead of the main visual after three seconds, it costs you potential customers every single day. This is exactly what Largest Contentful Paint (LCP) measures: the exact moment when the largest element in the initial visible viewport (above the fold) has finished loading. For your visitors, this is the decisive moment when the page feels visually ready – if it takes too long, many bounce before their first click. Google uses LCP as one of the three Core Web Vitals and treats it as a direct signal for page experience and rankings. In this article you will learn how to improve Largest Contentful Paint without getting lost in technical details. You get a clear sequence of steps, concrete measures for WordPress and answers to the most common questions.
If you want an overview of all three metrics, also read our guide Improving Core Web Vitals. This article is only about LCP, because on most WordPress sites it is the value that depends most on images, hosting and caching.
What exactly LCP measures
LCP does not look at the total page load time, only at the largest element that becomes visible within the initial viewport (above the fold). That can be a standard image (img tag), a video poster image, a CSS background image or a large block of text such as the main heading (H1). As soon as this element is fully rendered, the value is recorded. A page can therefore show text within one second and still have a poor LCP if the large hero image only appears after four seconds.
The thresholds at a glance
- Good: up to 2.5 seconds
- Needs improvement: 2.5 to 4 seconds
- Poor: over 4 seconds
What matters here is the 75th percentile of real visitors. That means three out of four visitors should experience the page within 2.5 seconds. A single fast test on your own computer therefore tells only part of the story. How lab data and field data differ is explained in Understanding PageSpeed Insights.
The four components of LCP
To optimize in a targeted way, it helps to break LCP down into four phases. Each phase has a different cause and a different solution:
- Time to First Byte (TTFB): How quickly does the server respond with the first byte?
- Resource load delay: How long does it take until the browser discovers and requests the LCP image at all?
- Resource load duration: How big is the file and how fast is it transferred?
- Render delay: How long do scripts or styles block rendering after the file has loaded?
If you know which of these four phases loses the most time, you save yourself many pointless experiments. On WordPress websites, the most common culprits in practice are phase one (slow hosting, missing page cache) and phase three (uncompressed, oversized hero images) – closely followed by phase two when a page builder delays the image via lazy loading.
Step 1: Find the LCP element
Before you change anything, you need to know which element is your LCP. Open the page in Chrome, start the developer tools with F12 and switch to the “Performance” tab. Start a recording with a page reload. In the timeline you will find the “LCP” marker; clicking it shows the corresponding element. It is easier with PageSpeed Insights: in the “Diagnostics” section you will find the entry “Largest Contentful Paint element” showing the exact image or text block.
Also check mobile and desktop separately. On a phone the LCP element is often a different one than on a large screen, for example because a heading looks larger there than the scaled-down image. Always optimize the element that counts in the mobile view, because Google primarily evaluates the mobile version.
Step 2: Speed up the server response
No image in the world can appear quickly if the server only responds after 1.5 seconds. On good WordPress sites TTFB should be under 600 milliseconds, ideally much lower. Typical bottlenecks are:
- Cheap shared hosting with overcrowded servers
- No page cache, so every request burdens PHP and the database
- Outdated PHP versions
- Too many or poorly programmed plugins
- A bloated database with revisions, transients and legacy data
The biggest lever is almost always a page cache. It serves ready-made HTML files instead of rebuilding the page on every request. How that works and what to look out for is explained in WordPress caching: How it works. If your hosting is fundamentally at its limit, take a look at Managed WordPress hosting or at the question of whether a VPS is worth it. Current PHP versions (8.2 or newer) also bring noticeable speed gains with no extra effort.
Step 3: Prepare the hero image properly
On most sites the LCP element is a large image. This is often where the biggest gains are to be made.
Choose the right format
Modern image formats like WebP and AVIF are much smaller than JPEG or PNG at the same visual quality. WordPress has supported WebP natively since version 5.8 and AVIF since version 6.5, and all modern browsers render WebP without issues. A photo that is 800 KB as a JPEG often drops to just 150 to 250 KB as WebP. Plugins such as Converter for Media, ShortPixel, or Imagify convert existing images automatically and serve a fallback file for older systems when needed.
Serve the right size
An image that is 4000 pixels wide but shown in a 1200 pixel wide container wastes data. WordPress automatically creates several sizes and sets the srcset attribute so the browser can pick the right one. That only works if you insert images in the editor at the right size and your theme does not strip the attributes. Check whether a small variant is really loaded on a phone.
Compress without visible loss
A quality level of 75 to 85 percent is almost always enough for photos. Also strip unnecessary EXIF metadata and avoid oversized images used purely for a decorative effect. As a rule of thumb: a hero image should stay under 150 to 200 KB.
Step 4: Prioritize the LCP image
By default, browsers load images with low priority as long as they do not yet know the layout. So you should explicitly give the LCP image priority:
- No lazy loading for the LCP image: Delayed loading is harmful for images in the visible area. Only set loading=“lazy” on images further down. Many plugins and WordPress itself usually recognize the first image correctly, but with page builders it often goes wrong.
- fetchpriority=“high”: This attribute on the hero image tells the browser that it is important.
- Preload: With a preload hint in the head, the browser loads the image before it finds it in the code. This is especially helpful for CSS background images, which the browser would otherwise discover late.
If you use Elementor, note the particularities of background images in containers. You will find details in Elementor page speed.
Step 5: Defuse blocking scripts and styles
Even when the image loads quickly, the browser cannot paint the page while it waits for render-blocking CSS or JavaScript. That is the render delay from phase four.
Reduce CSS
The browser has to load all stylesheets in the head before it shows anything. So only load styles you really need. Many plugins include their CSS files on every page even though they are only needed on one. With plugins such as WP Rocket, FlyingPress, or Perfmatters, you can inline the essentials (“critical CSS”) directly into the HTML head and defer unused CSS. Afterwards, test the page for visual glitches.
Delay JavaScript
Scripts that are not needed for the initial visible viewport should be loaded with defer or async or held back until the first user interaction (mouse movement, scroll, tap). This applies especially to chat widgets, analytics tracking, social media embeds and maps. Make sure to exclude interactive above-the-fold elements – such as the mobile navigation menu or cookie banner – from this delay.
Provide fonts quickly
If your LCP element is a block of text, the value depends on the font. Load fonts locally from your own server instead of from external providers, use the WOFF2 format and set font-display: swap so text appears immediately with a fallback font. Incidentally, this is also better for privacy. You will find more on layout shifts caused by fonts in Fixing CLS in WordPress.
Step 6: Use a CDN for fast delivery
A Content Delivery Network stores copies of your static files on servers in many countries. Visitors get images, styles and scripts from the nearest location. This reduces latency, especially for visitors who are far from your hosting. How the setup works is shown in Setting up a WordPress CDN. For purely German audiences with a server in Germany the effect is smaller, but it is still measurable for images and file sizes.
Practical example: From 4.8 to 2.1 seconds
A typical example from practice: a service provider site with Elementor, shared hosting and a hero image as a 1.9 MB JPEG. The mobile LCP was 4.8 seconds. The analysis in PageSpeed Insights showed three main causes: a TTFB of 1.3 seconds, an oversized hero image and a lazy-loading attribute on exactly this image.
- Page cache enabled: TTFB dropped from 1.3 seconds to about 0.4 seconds. Gain: about 0.9 seconds.
- Hero image converted: The 1.9 MB JPEG became a 160 KB WebP at the right size. Gain: about 1.1 seconds.
- Lazy loading removed and fetchpriority set: The browser loaded the image earlier. Gain: about 0.5 seconds.
- Two blocking scripts delayed: Gain: about 0.3 seconds.
Result: a mobile LCP of 2.1 seconds, without a redesign and without a new theme. These numbers are a real-world example rather than a blanket guarantee, yet they show the typical pattern: a few targeted interventions outperform a dozen randomly installed plugins.
Which measure delivers how much?
The lever differs depending on your starting point. This assessment helps with prioritization:
- Enable page cache: high impact, little effort, affects TTFB
- Optimize the hero image: high impact, medium effort, affects load duration
- Turn off lazy loading for the LCP image: medium impact, hardly any effort
- Preload and fetchpriority: medium impact, low effort
- Defuse CSS and JavaScript: medium to high impact, medium to high effort, needs testing
- CDN: small to medium impact, low effort
- Switching hosting: high impact with weak hosting, higher effort
Start with the measures at the top of the list, because they deliver the most benefit for the least effort.
LCP on text pages and blog posts
Not every page has a large image. On blog articles the LCP is often the heading or the first paragraph. What counts here is mainly how quickly the font is available and how early the browser processes the first stylesheet. Check whether an external font keeps the text invisible until it has loaded. With font-display: swap the text appears immediately. Also load only the font weights you really use, because every additional weight costs time. Four weights of 30 KB each are already 120 KB that can delay rendering.
LCP in WooCommerce and online shops
In online shops, the LCP element is usually the main image on a product page or the hero banner on the homepage. On top of that come heavy scripts for the mini cart (such as WooCommerce Cart Fragments), reviews and payment gateways like PayPal or Klarna. Give the product image top loading priority, avoid heavy zoom or slider scripts on initial load, and make sure your page cache properly excludes cart, checkout and my-account pages. More on this in WooCommerce too slow.
Checklist for a quick overview
- Is TTFB under 600 milliseconds?
- Is a current PHP version running (8.2 or newer)?
- Is a page cache active and does it work for visitors who are not logged in?
- Does the hero image have a modern format and less than 200 KB?
- Does the hero image have explicit width and height attributes as well as fetchpriority="high"?
- Is lazy loading turned off for the first image?
- Are fonts loaded locally and delivered as WOFF2?
- Are CSS and JavaScript minimal for the first screen?
- Do you use a CDN for images and static files?
- Did you test on mobile and desktop?
Typical LCP mistakes
- Sliders in the header area: They load several large images and a lot of JavaScript. If possible, replace them with a single static image.
- Hero image as a CSS background: The browser discovers it late. A normal img element with fetchpriority is usually better.
- Lazy loading everywhere: If all images are delayed, including the first one, you give away speed.
- Too many optimization plugins: Several plugins that interfere with each other tend to make the values worse rather than better.
- Testing only on desktop: The mobile view decides.
Check whether the measures work
After every change you should measure. Use PageSpeed Insights and pay special attention to the “Field data” section, because only that reflects real visitors. Note that field data can take up to 28 days until improvements show up completely. In the Search Console “Core Web Vitals” report, you can see how many URLs are rated good, needs improvement, or poor. Always change only one thing at a time, otherwise you will not know what worked.
A simple work plan
- Identify the LCP element of your most important pages
- Measure TTFB and check hosting and cache
- Convert the hero image to WebP, scale it properly and compress it
- Remove lazy loading from the LCP image, set fetchpriority
- Reduce blocking scripts and styles
- Measure the results and check the field data after four weeks
When professional help is worth it
Many of these steps can be done yourself with a bit of time. It gets difficult when optimizations interfere with each other, a page builder dictates the markup or the hosting itself is the bottleneck. Then support saves you a lot of time. Our Pagespeed Boost at $149 bundles exactly these measures: analysis, image optimization, caching and defusing blocking resources. To keep the values good in the long run, you can also book Maintenance for $99 per month. If you first want to know where you stand, use the free check.
Conclusion: Measure first, then optimize in a targeted way
Improving Largest Contentful Paint is rarely a single step. Usually several targeted measures work together: a fast server with an active page cache, a properly scaled and compressed hero image, clean prioritization without lazy loading and fewer blocking scripts. Always start with measuring, identify the actual LCP element on mobile devices, work through the steps in order and verify after every change. That way you reach Google's target of under 2.5 seconds sustainably – and keep it stable through future theme and plugin updates. For further reading, we recommend Improving INP and WordPress slow? The most common causes.
Frequently asked questions about LCP
What is a good LCP value?
A good value is a maximum of 2.5 seconds, measured at the 75th percentile of real visitors. Above 4 seconds Google rates the value as poor.
How do I find out which element is my LCP?
PageSpeed Insights shows the element in the “Diagnostics” section. Alternatively you can find it in the Chrome developer tools in the “Performance” tab at the LCP marker.
Does LCP affect my Google ranking?
Yes, LCP is part of the Core Web Vitals and therefore a signal for page experience. It is not a ranking factor on its own, but with similarly good content it can tip the balance. Above all, a fast page improves the bounce rate and conversion.
Should I turn off lazy loading completely?
No. Lazy loading makes sense for images further down the page. Only the image in the visible area, usually the LCP element, must not be delayed.
Why is my LCP worse on mobile than on desktop?
In everyday use, mobile devices often have slower cellular connections and weaker processors than desktop PCs – which is directly reflected in real user data (CrUX), while PageSpeed Insights additionally uses a throttled simulation in lab tests. Furthermore, on a narrow smartphone screen, a completely different element (such as a large heading instead of a scaled-down image) can become the LCP.
How long does it take until improvements show up in the field data?
The field data in the Chrome User Experience Report covers the last 28 days. So expect about a month until an improvement shows up completely.
Is a caching plugin enough on its own?
Usually not. A cache reduces server time but does not solve problems with oversized images or blocking scripts. LCP is the interplay of several factors.
Do I have to rebuild the whole page for a good LCP?
No. In most cases targeted measures are enough: cache, image optimization and fewer blocking scripts. A redesign is only necessary if the layout itself, for example a slider with ten images, is the problem.
What is the maximum file size my hero image should have?
Aim for 150 to 200 KB as a guideline. For large Retina displays with fine visual detail it can be slightly larger, but it should never reach the megabyte range.
Is AVIF better than WebP?
AVIF is often 20 to 30 percent smaller than WebP, but it requires more server processing time and an up-to-date image library (Imagick or GD), even though WordPress has supported it natively since version 6.5. WebP therefore remains the safest default. If your optimization plugin offers AVIF with a fallback file, you can try it.
What does it cost to have LCP improved professionally?
Our Pagespeed Boost costs $149. It includes analysis, image optimization, caching and defusing blocking resources. We clarify the scope for your site in advance.