Largest Contentful Paint (LCP): Why It Is Slow and How to Fix Every Major Cause

Identify your LCP element, break its time into the four subparts, and fix the one that is actually costing you — each has a different solution.

In short

Largest Contentful Paint measures how long it takes for the biggest visible thing on your page to appear — usually your main image or your headline. Google wants that within 2.5 seconds for at least three quarters of your visitors.

If your LCP is slow, it is slow for one of exactly four reasons:

  1. Your server took too long to send the page.
  2. The browser found out about the image too late.
  3. The image took too long to download.
  4. The image arrived, but something stopped the page drawing it.

Each has a completely different fix. The single most useful thing you can do is work out which of the four is costing you time, because applying the wrong fix is why so much LCP work changes nothing.

What LCP actually measures

As a page loads, the browser keeps noting the largest piece of content it has drawn so far. As bigger things appear, it updates its note. When you interact with the page, it stops. The time of the final note is your Largest Contentful Paint.

Only certain things count as "contentful":

  • <img> elements
  • <image> inside an <svg>
  • the poster image of a <video>
  • an element with a CSS background-image
  • a block of text

Two details matter in practice. It must be visible in the viewport — the part of the page on screen without scrolling. And it is measured per device, so your LCP element on a phone is often not the same element as on a desktop, because the layout is different.

That is already enough to explain a common waste of time: someone optimises the big hero image they can see on their laptop, while on mobile the layout stacks differently and the LCP element is actually a block of text or a different image entirely.

How the four parts work

This is the heart of LCP diagnosis. The total time splits into four consecutive parts, and knowing the split tells you exactly what to fix.

#PartWhat is happeningRoughly healthy
1Time to First ByteThe visitor's browser asks your server for the page and waits for the first byte of the answerUnder ~0.8s
2Resource load delayThe page has started arriving, but the browser has not yet started downloading the LCP imageAs close to zero as possible
3Resource load durationThe image is downloadingDepends on size, keep small
4Element render delayThe image has fully downloaded, but has not been drawn on screen yetAs close to zero as possible

Parts 2 and 4 are the interesting ones, because they are usually pure waste — time where nothing useful is happening.

What each part means in plain terms

Time to First Byte is your server thinking. If this is slow, no amount of image optimisation will help, because the browser has not even received the HTML that mentions your image yet.

Resource load delay is the gap between the page arriving and the download starting. It exists because the browser can only request the image once it knows the image exists. If the image is mentioned in your HTML, the browser finds it almost immediately. If it is added later by JavaScript, or referenced from a CSS file that itself has to download first, the browser finds out late. This gap is one of the most common and most fixable causes of slow LCP.

Resource load duration is the actual download. This is where file size, image format and your CDN matter.

Element render delay is the gap between the image being ready and it appearing. Usually this means something else was blocking rendering — a stylesheet still downloading, a synchronous script still running, or a font the text was waiting on.

How to find your LCP element and its four parts

Step 1 — find the element

  1. Open your page in Chrome.
  2. Open DevTools (F12, or right-click → Inspect).
  3. Go to the Performance panel.
  4. Tick Screenshots, set CPU throttling to 4x slowdown and Network to Slow 4G — this approximates a mid-range phone rather than your desktop.
  5. Click the reload icon inside the panel. It reloads and records.
  6. In the timings track near the top, find the LCP marker.
  7. Click it. The Summary tab below names the element, and hovering highlights it on the page.

What you should see: the specific element, named. If it is not what you expected, that is your first finding — stop and re-aim.

Do this twice: once in desktop mode and once with the device toolbar set to a phone. Note both elements.

Step 2 — get the four-part breakdown

With the LCP marker selected, newer Chrome versions show the subparts directly. If yours does not, you can read them from the network and timing tracks:

  • TTFB — the time until the first byte of the document response.
  • Load delay — from TTFB until the LCP image's request starts.
  • Load duration — the length of that request.
  • Render delay — from the end of that request until the LCP marker.

What you should see: four numbers that add up to your LCP. The biggest one is what you are going to fix.

Step 3 — confirm against real visitors

Lab numbers tell you the mechanism. Before investing serious effort, check PageSpeed Insights field data for the same page to confirm real visitors are affected, and by how much. A page that is slow in your throttled lab test but fine for actual visitors is not where your time should go.

What to fix, depending on which part is slow

If TTFB is the problem

The problem is not on the page at all, it is in how your server produces it. Common causes: no caching, so every visit rebuilds the page; slow database queries; a redirect chain before the real response; a third-party API called while building the page; or an origin server far from your visitors.

This is a separate discipline — see TTFB optimization. The important thing here: do not try to fix a TTFB problem with image optimisation. They are unrelated.

If resource load delay is the problem

You are fixing discovery. The goal is for the browser to learn about the image as early as possible.

Put the image in the initial HTML. The single most effective change. If your hero is inserted by a slider, carousel or JavaScript framework after load, the browser cannot possibly request it early. Render the first image server-side even if the rest of the carousel is built later.

Never lazy-load the LCP image. loading="lazy" explicitly tells the browser to wait — see when lazy loading helps and when it hurts. On an image that is visible immediately, this directly adds delay.

<!-- Wrong: the browser is told to delay the most important image on the page -->
<img src="/hero.webp" loading="lazy" width="1200" height="600" alt="...">

<!-- Right: load it immediately, and at high priority -->
<img src="/hero.webp" fetchpriority="high" width="1200" height="600" alt="...">

Give it priority. fetchpriority="high" tells the browser this image matters more than the others it has just discovered. Use it on one image per page — the LCP one. Marking everything high priority means marking nothing high priority.

Preload it if it is referenced from CSS. A CSS background-image cannot be discovered until the stylesheet has downloaded and been parsed. Either use a real <img> instead, or preload it:

<link rel="preload" as="image" href="/hero.webp" fetchpriority="high">

If resource load duration is the problem

Now, and only now, file size is your issue.

Serve the right dimensions. An image displayed at 800 pixels wide does not need to be 3000 pixels wide. Check the real displayed size at each breakpoint and serve accordingly with srcset and sizes.

Use a modern format. AVIF and WebP are substantially smaller than JPEG at the same visual quality.

Compress with testing rather than a rule. Reduce quality until you can see a difference, then go back one step. The right number depends on the image.

Serve from a CDN so the file travels a shorter distance.

Full detail is in the image optimization guide. The connection to LCP is simply: fewer bytes, less time in part 3.

If element render delay is the problem

Something is stopping the browser drawing. Look for:

  • Render-blocking stylesheets — the browser will not paint until its CSS is ready. Inline what is needed for the visible area and load the rest without blocking, as in CSS performance optimization.
  • Synchronous scripts in the <head> — add defer or async unless there is a specific reason not to.
  • Fonts the text depends on — if your LCP element is text, it may be waiting for a web font. font-display: swap lets it draw in a fallback immediately.
  • Client-side rendering — if your main content only exists after JavaScript has run, LCP cannot happen until then. Server-render the visible part.

Platform differences

Shopify. Shopify serves images through its own CDN and can resize them for you, so most of part 3 is handled if you request the right size. Use the image_url filter with a width, and image_tag. The usual real problem on Shopify is part 2: themes that build the hero in JavaScript, or apps that inject the banner. Check what is in the initial HTML with View Source rather than Inspect — Inspect shows the page after scripts have run.

{{ section.settings.hero
   | image_url: width: 1600
   | image_tag:
       loading: 'eager',
       fetchpriority: 'high',
       sizes: '100vw',
       widths: '600, 900, 1200, 1600',
       alt: section.settings.hero.alt }}

WordPress. WordPress adds loading="lazy" to images automatically, and historically this has caught hero images. Recent versions try to skip the first image, but themes and page builders frequently defeat that. Check the rendered HTML of your actual hero and make sure it is not lazy. Page builders that render sliders client-side are a common cause of part 2 delay.

Custom and headless builds. The risk is client-side rendering. If the LCP element is produced by the framework in the browser, LCP waits for JavaScript to download, parse and execute. Server-render or pre-render the visible portion.

Managed platforms (Wix, Squarespace, Webflow). You usually cannot change loading behaviour or preloads. What you can control is which image you upload and how large it is. Upload appropriately sized images and accept that part 2 and part 4 are largely out of your hands.

Common mistakes

Optimising the wrong element — the most common of all. Always identify it first, on both mobile and desktop.

Lazy-loading the hero, usually by applying a blanket lazy-loading rule to every image on the site.

Preloading everything, which creates bandwidth contention and can push the real LCP image later.

Compressing an image that was never the bottleneck, when the actual cost was discovery or render delay.

Assuming a slow TTFB means bad hosting. It is more often a missing cache, a redirect chain or a slow query.

Removing the image entirely to "fix" LCP. The next largest element simply becomes your LCP element, and you have made the page worse for people.

Measuring only on desktop, where the element and the constraints are both different.

Verification

  1. Re-record in DevTools. The four-part breakdown should show the part you targeted has shrunk.
  2. Confirm the LCP element did not change. If it did, re-aim: you are now optimising something else.
  3. Check the other two Core Web Vitals. Preloads and priority changes can affect layout stability and responsiveness.
  4. Check both mobile and desktop.
  5. Confirm it is live for real visitors and not stuck behind a cache or CDN.
  6. Wait for field data. CrUX reports a rolling 28-day window, so expect movement to begin in about a week and settle after four. A lab improvement that does not eventually appear in the field means your visitors' conditions differ from your test — look at your slowest quarter of traffic.

When it still does not improve

  • Element render delay remains large — something is still blocking paint. Check for a stylesheet or synchronous script you have missed, and for fonts if the element is text.
  • Load delay is still large even though the image is in the HTML — something earlier in the document is occupying the connection, or a script is blocking the parser before the image is reached. Move blocking scripts below, or defer them.
  • The lab is fine, the field is not — your test conditions are kinder than reality. Throttle harder, and segment your field data by country and device.
  • It got worse after a preload — remove it. Preloads are not free.
  • TTFB dominates and will not move — stop working on the page. The problem is server-side.

Keeping LCP good

The hero area of a page is exactly where marketing changes land: new banners, new campaign images, a video, a promotional bar inserted above the fold. Any of those can change which element is the LCP element and undo this work.

Three habits keep it fixed: re-check the LCP element after any change to the top of a page, set a size limit for hero images that whoever uploads them knows about, and monitor the metric continuously rather than auditing occasionally.

Frequently asked questions

What is a good LCP score?

2.5 seconds or less for at least 75% of visits. Between 2.5 and 4 seconds needs improvement, and over 4 seconds is poor. Mobile and desktop are assessed separately.

How do I find out which element is my LCP element?

Open Chrome DevTools, go to the Performance panel, record a page reload with CPU and network throttling on, then click the LCP marker in the timings track. The Summary tab names the element. Check mobile and desktop separately — they are often different elements.

Does lazy loading hurt LCP?

Yes, if you lazy-load the LCP element. loading="lazy" explicitly tells the browser to wait, which directly delays the most important content on the page. Lazy loading is good for images below the fold and harmful for the hero.

Should I preload my hero image?

Only if the browser cannot otherwise discover it early — for example when it is a CSS background image. If it is a plain img element in your initial HTML, fetchpriority="high" is usually enough. Preloads compete for bandwidth, so preloading several resources often makes the important one slower.

Why did compressing my hero image not improve LCP?

Because download time was probably not your bottleneck. LCP splits into four parts: server response, discovery delay, download, and render delay. Compression only helps the third. If the browser discovered the image late, or rendering was blocked, a smaller file changes very little.

My LCP is good on desktop but poor on mobile. Why?

Mobile devices have far slower processors and higher network latency, and your mobile layout often has a different LCP element entirely. Identify the element on a real phone rather than assuming it matches desktop.

References