To fix a slow Largest Contentful Paint (LCP), first find which element is the LCP on your page, usually the hero image or the main heading. Then work out which part of the loading process is slow: the server response, the delay before the browser starts downloading the image, the download itself, or the time before it is drawn on screen. Each has a different fix.
Most LCP problems I fix come down to a handful of causes: slow server response, a hero image that is lazy loaded or set as a CSS background, an image that is far too large, or render-blocking CSS, fonts and scripts. Google's target is 2.5 seconds or less for at least 75 percent of visits.
This guide walks through the diagnosis and the fix for each case.
Step 1: Confirm you have a real LCP problem
Open PageSpeed Insights at pagespeed.web.dev and test your page on mobile. Look at the top section first. If it shows field data and LCP is green, you do not have a real-user LCP problem, even if the lab section shows a warning.
If field data shows LCP over 2.5 seconds, or Search Console's Core Web Vitals report lists the URL as "LCP issue", you have work to do. Check whether it affects one template, such as product pages, or the whole site. Fixing a template fixes every page that uses it.
If you need a refresher on the three metrics, see Core Web Vitals explained for business owners.
Step 2: Find your LCP element
In the PageSpeed Insights lab report, open the diagnostic called "Largest Contentful Paint element". It shows exactly which element was measured. Common answers:
- The hero image at the top of the homepage
- A product image on product pages
- The main headline or first paragraph on text-heavy pages
- A large background image in a page builder section
- A video poster image
You can also find it in Chrome DevTools. Open the Performance panel, record a page load, and look for the LCP marker. On mobile and desktop the LCP element can differ, so check both.
Step 3: Break LCP into its four parts
Google splits LCP time into four parts. Knowing which is large tells you what to fix.
| Part | What it means | Typical cause when large |
|---|---|---|
| Time to First Byte | How long until the server starts sending HTML | Slow hosting, no page cache, slow database queries |
| Resource load delay | Time between the HTML arriving and the browser starting to fetch the LCP image | Image discovered late: CSS background, lazy loading, injected by JavaScript |
| Resource load duration | How long the image takes to download | Image too big, wrong format, no CDN |
| Element render delay | Time between the image arriving and it appearing | Render-blocking CSS or JavaScript, fonts, client-side rendering |
PageSpeed Insights shows this breakdown under the LCP diagnostic. Google's guide to optimising LCP on web.dev explains the model in depth.
For a text LCP element, there is no image download, so focus on TTFB and render delay.
Fix 1: Reduce server response time
If TTFB is a large part of LCP, nothing else will be fast enough until you fix it.
- Turn on full-page caching so pages are served as ready-made HTML
- Preload the cache so first visitors do not get uncached pages
- Use a CDN so HTML and files come from a location near the visitor
- Upgrade hosting if the server is slow even for cached pages
- Find slow database queries or plugins on dynamic pages like carts and searches
On WordPress, this is usually the biggest single improvement. My guide on making a WordPress site load in under 2 seconds covers hosting and caching in detail.
Fix 2: Make the LCP image discoverable early
The browser can only download an image once it knows about it. It finds normal image tags in the HTML immediately. It finds CSS background images only after downloading and processing the stylesheet. It finds images added by JavaScript sliders even later.
To remove the load delay:
- Use a normal
<img>element for the hero, not a CSS background, where possible. - Remove lazy loading from the LCP image. Lazy loading tells the browser to wait.
- Give it high fetch priority so the browser downloads it before less important files.
- If it must stay a background image, preload it.
A well-configured hero image in HTML looks like this:
<img
src="/images/hero-1200.webp"
srcset="/images/hero-600.webp 600w, /images/hero-1200.webp 1200w, /images/hero-1800.webp 1800w"
sizes="100vw"
width="1800"
height="900"
alt="Technician repairing a boiler"
fetchpriority="high"
loading="eager"
>And a preload for a background image in the page head:
<link rel="preload" as="image" href="/images/hero-1200.webp" fetchpriority="high">Only preload the one LCP image. Preloading many files makes them compete and can make things worse.
Fix 3: Make the image smaller
If resource load duration is the large part, the image is too heavy.
- Resize it to the largest size actually displayed
- Serve responsive versions with
srcsetso phones get smaller files - Use WebP or AVIF instead of large JPEG or PNG files
- Compress sensibly; most hero images look fine well under 200 KB
- Serve from a CDN
Shopify, WordPress and Next.js can all generate responsive images, but only if the theme or code asks for them correctly.
Fix 4: Remove render-blocking resources
If the image arrives early but appears late, something is blocking the page from rendering.
- CSS: large stylesheets block rendering until downloaded. Inline the small amount of CSS needed for the top of the page and load the rest without blocking, or remove unused CSS.
- JavaScript: scripts in the head without
deferorasyncblock rendering. Defer anything not needed for the first screen. - Fonts: if the LCP element is text, make sure fonts use
font-display: swapso text shows immediately in a fallback font. Host fonts yourself and preload the main one. - Client-side rendering: if the page content is built by JavaScript in the browser, the LCP element cannot appear until that code runs. Server-rendering or pre-rendering the HTML fixes this.
- Anti-flicker snippets: some A/B testing tools hide the page until their script loads. These can add seconds to LCP.
Watch out for sliders, popups and consent banners
A few common patterns hurt LCP in specific ways:
- Hero sliders often load their first image through JavaScript, which delays discovery.
- A cookie banner or popup can itself become the LCP element if it is the biggest thing on the screen.
- Hero videos can become the LCP element through their poster image, which is often unoptimised.
Replacing a slider with one static image is often the single best LCP fix on marketing sites.
How to confirm the fix worked
- Re-run PageSpeed Insights and confirm the lab LCP and the breakdown improved.
- Check that the LCP element is still what you expect.
- In Search Console, use "Validate fix" on the Core Web Vitals issue.
- Wait for field data. It uses a rolling 28-day window, so full results take about four weeks.
The short version
- Confirm the problem with field data, then find the LCP element.
- Look at the four-part breakdown to see where time is lost.
- Slow TTFB: fix caching, CDN and hosting.
- Long load delay: use a normal image tag, no lazy loading, high fetch priority.
- Long load duration: smaller, modern, responsive images.
- Long render delay: remove render-blocking CSS, scripts and fonts.
If your LCP is stuck and you want someone to trace it properly, my speed optimization service starts with exactly this breakdown. Send me the URL of the page that is failing.