How to fix a slow Largest Contentful Paint (LCP) image
On most pages, the LCP element is an image. Here's how to find it, why it's slow, and the five fixes that bring LCP under 2.5 seconds, most of them one line of HTML.

You ran your site through PageSpeed Insights, and Largest Contentful Paint is red. Maybe 4.8 seconds on mobile. Maybe worse.
The report gives you a long list of suggestions, and it's hard to tell which ones matter. Here's the good news: on most sites, LCP comes down to one image. Usually the big one at the top of the page. Fix that image, and the number drops.
What LCP actually measures
Largest Contentful Paint is the time from when someone starts loading your page until the biggest thing in the visible part of the screen has finished rendering. It's Google's way of measuring "when does this page look loaded?"
The targets:
- Good: 2.5 seconds or less
- Needs improvement: 2.5 to 4 seconds
- Poor: over 4 seconds
It's measured on real visitors' devices, and Google looks at the 75th percentile, so your slowest quarter of visitors decides your score. Those are usually people on mid-range phones and patchy mobile connections, not you on office Wi-Fi.
The "biggest thing" can be a heading or a block of text, but on most pages it's an image: a hero banner, a product photo, the featured image on a blog post.
Step 1: find your LCP element
Don't guess. Check.
- PageSpeed Insights: Run your URL, scroll down to the diagnostics, and look for the LCP element. It shows you the exact element, often with a little thumbnail.
- Chrome DevTools: Open the Performance panel. The live metrics view shows your LCP and highlights which element it was. Reload a few times; it can change between desktop and mobile layouts.
If it's an image, read on.
Step 2: understand why it's slow
An LCP image can be slow for four reasons, and it helps to know which one you're dealing with:
- The server is slow to send the page. Nothing can start until the HTML arrives.
- The browser finds the image late. It doesn't start downloading until it's already parsed a lot of other stuff.
- The image takes ages to download because it's too big.
- It's downloaded but not shown yet, usually because JavaScript is in the way.
Most of the time it's 2 and 3. So that's where the fixes are.
Fix 1: don't lazy-load it
This is the most common mistake I see, and the easiest fix.
loading="lazy" tells the browser "don't bother downloading this until it's about to scroll into view." That's great for images further down the page. On the hero image at the very top, it tells the browser to wait before downloading the single most important image on the page.
Many themes and plugins add loading="lazy" to every image automatically. Check your hero:
<!-- Bad -->
<img src="hero.webp" loading="lazy" alt="..." />
<!-- Good -->
<img src="hero.webp" alt="..." />
Fix 2: tell the browser it's important
Browsers guess which resources matter most, and they don't always guess right with images. You can tell them directly:
<img src="hero.webp" fetchpriority="high" width="1600" height="900" alt="..." />
fetchpriority="high" moves the image up the download queue. Use it on one image, the LCP one. If you put it on everything, it means nothing.
Fix 3: don't hide it in CSS or JavaScript
If your hero is a CSS background-image, the browser can't see it until it has downloaded and parsed the stylesheet. If it's inserted by a JavaScript slider, the browser can't see it until the script runs. Either way, the download starts late.
The best fix is to use a normal <img> tag in the HTML. If you really need it in CSS, add a preload hint in the <head>:
<link rel="preload" as="image" href="/img/hero.webp" fetchpriority="high" />
And honestly, if your LCP image is the first slide of an auto-rotating carousel, consider dropping the carousel. Hardly anyone waits for slide three, and they're bad for LCP.
Fix 4: make the image smaller
This is where the biggest gains usually are. A hero image straight out of a camera or a design tool can be 3–6 MB. On a typical mobile connection, that alone is several seconds.
Two things to do:
- Resize it. A full-width hero rarely needs more than 1920–2560 pixels wide, and phones need much less. Use
srcsetso phones get a smaller file. Our image size cheat sheet has the numbers. - Use a modern format. AVIF or WebP at a sensible quality usually brings a hero image down to 100–250 KB without any visible difference.
In TinyRes, drop the image in, set the width in the Resize tab, and pick Maximum compression (AVIF) or Web optimised (WebP). If you have a strict budget, say 150 KB for the hero, set it as the Target size in the Output tab and the quality is adjusted to fit. It's free, there's no account, and nothing is stored.
Fix 5: set width and height
This one is about a different metric, Cumulative Layout Shift, but it goes hand in hand. Without width and height attributes, the browser doesn't know how much space to save for the image, and the page jumps when it loads. Always include them. They just need the right aspect ratio.
How long until PageSpeed shows the improvement?
The lab score at the top of PageSpeed Insights updates as soon as you run it again. The field data ("Discover what your real users are experiencing") is collected from real Chrome users over the previous 28 days. So after you deploy a fix, give it about four weeks for the field numbers to fully catch up. Don't panic if they don't move the next day.
The short version
Find the LCP element. If it's an image: don't lazy-load it, add fetchpriority="high", put it in a plain <img> tag, resize it, and convert it to AVIF or WebP. That's usually enough to move LCP from red to green.
If you want the bigger picture of why images cause so many performance problems, we wrote about that in why your website is slow.
zero bytes stored
Shrink your images right now
Convert to AVIF, WebP or MozJPEG, crop around faces, strip EXIF and hit exact KB targets in your browser.