Largest Contentful Paint (LCP) measures how long it takes for the biggest visible element on a page to appear. On most pages, that element is an image: the hero photo, the featured image of an article, or the main product shot. Google treats LCP as one of its three Core Web Vitals, and it is the one image optimization affects most directly.

What a good LCP score looks like

LCP timeRating
2.5 seconds or lessGood
2.5 to 4 secondsNeeds improvement
More than 4 secondsPoor

Google measures LCP from real visitors in the Chrome User Experience Report, at the 75th percentile. That means three out of four page visits need to load the LCP element within 2.5 seconds for the page to pass. Mobile visitors on slower connections usually decide the result.

Find your LCP element first

Before optimizing, confirm which element is the LCP. Run the page through PageSpeed Insights and look for the Largest Contentful Paint element in the diagnostics. In Chrome DevTools, the Performance panel also labels it. If it is an image, the steps below apply. If it is a block of text, your fonts or server response time are the bigger issue.

LCP is four phases, not one number

The LCP time is the sum of four parts, and images affect each one differently:

PhaseWhat happensHow images affect it
Time to first byteServer sends the HTMLNot image related
Resource load delayBrowser discovers the imageLazy loading or CSS backgrounds delay it
Resource load durationImage downloadsFile size and format
Element render delayImage is paintedBlocking scripts and styles

Most image-heavy pages lose time in the middle two phases: the browser finds the image late, then spends too long downloading it.

Step 1: make the image smaller

The download time is proportional to file size, so this is usually the biggest single win.

  1. Resize to the display size. A hero shown 1200 pixels wide on desktop does not need a 4000 pixel photo. About twice the display width covers high density screens.
  2. Use a modern format. WebP is typically 25 to 35 percent smaller than JPG. AVIF is smaller still.
  3. Compress sensibly. WebP at quality 75 to 82 looks the same as the original at normal size.

A good target for a full-width hero image is under 150 KB, and for an article featured image under 100 KB. The JPG to WebP converter resizes and converts in one step, and the bulk image compressor handles a whole folder at once.

Convert hero images to WebPAny size, free, runs in your browserOpen tool

Step 2: let the browser find it early

The browser can only download an image after it discovers it. These mistakes delay discovery:

  • Lazy loading the LCP image. loading="lazy" tells the browser to wait. Never use it on the first large image on the page.
  • Using a CSS background image for the hero. Backgrounds are discovered only after the stylesheet loads. A normal img element is found much sooner.
  • Inserting the image with JavaScript, such as a slider that builds its slides after the page loads.

Then give the browser an explicit hint. Add fetchpriority="high" to the LCP image so it downloads before less important images:

<img src="/images/hero.webp" width="1600" height="900" alt="Studio portrait session" fetchpriority="high" decoding="async">

If the image is set in CSS or loaded late for a reason you cannot change, preload it in the head instead:

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

Step 3: avoid render delays

Even after the image downloads, the browser must be free to paint it. Large blocking scripts, heavy CSS files and web fonts that hide text all add delay. Keep the critical CSS small, defer scripts that are not needed for the first view, and make sure sliders or animations do not hide the hero until a script runs.

Always include width and height attributes on the image. They let the browser reserve space, which prevents layout shift, the separate Core Web Vital called CLS.

Step 4: serve responsive sizes

Phones do not need the desktop image. Use srcset so each device downloads a suitable size:

<img src="/images/hero-1600.webp" srcset="/images/hero-800.webp 800w, /images/hero-1200.webp 1200w, /images/hero-1600.webp 1600w" sizes="100vw" width="1600" height="900" alt="Studio portrait session" fetchpriority="high">

A phone might download the 800 pixel version at a quarter of the weight, which often makes the difference between a poor and a good mobile LCP.

Common LCP mistakes with images

A few patterns appear again and again on slow pages. Sliders that load several full-size images before showing the first one push LCP back by seconds. Hero videos with a large poster image often delay the poster behind the video script. Cookie banners and pop-ups that cover the hero can even become the LCP element themselves. And images served from a different domain without a preconnect hint add an extra connection before the download starts. Fixing these usually requires no new tools, only a change to how the page is built.

LCP fixes by platform

The same principles apply everywhere, but where you make the change depends on how your site is built.

PlatformWhere the hero image is setKey settings to check
WordPressTheme, page builder or block editorLazy loading excluded for the hero, image size chosen in the block
ShopifyTheme sectionsImage width setting in the section, theme's lazy loading behaviour
Next.jsThe Image componentThe priority prop on the hero, a sizes value that matches the layout
Static sitesHTML templatesfetchpriority, width and height, srcset
Page builders such as ElementorSection background or image widgetBackground images are often discovered late; prefer an image widget

Page builders deserve special attention. Many place hero images as CSS backgrounds, which the browser cannot discover until the stylesheet has loaded. Switching to a regular image element, or preloading the background image, often improves LCP by a large margin on its own.

Field data versus lab data

PageSpeed Insights shows two kinds of results, and they often disagree.

  • Field data comes from real Chrome users over the past 28 days. It is what Google uses for Core Web Vitals in search.
  • Lab data is a single simulated test on a mid-range phone with a throttled connection. It changes every time you run it.
Field dataLab data
SourceReal visitorsOne simulated load
UpdatesRolling 28 daysInstantly
Used for search ranking signalsYesNo
Best forJudging real performanceTesting a fix

After a change, lab data improves straight away, but field data takes several weeks to reflect it. Do not be discouraged if the field numbers move slowly. Keep checking the lab result to confirm the fix works, and look at field data again after a month.

Images that should not be the LCP element

Sometimes the LCP element is an image that does not need to be there at all, such as a decorative background, a large logo or a cookie banner image. If removing or shrinking it does not harm the page, the browser picks a different, faster element for LCP.

Ask whether the large image above the fold helps the reader. On many article pages, a big stock photo at the top pushes the content down and slows the page. A smaller image, or leading with the headline and introduction, can give a better LCP and a better reading experience.

Carousels and sliders

Hero sliders are one of the most common causes of poor LCP. They often load several large images at once, use JavaScript before showing the first slide and add transitions that delay the final render.

If you keep a slider:

  1. Make sure the first slide is a normal image, loaded eagerly with fetchpriority set to high.
  2. Lazy-load every other slide.
  3. Avoid fade-in animations on the first slide.
  4. Compress every slide image, since visitors often swipe through them.

Many sites find that replacing a slider with a single, well chosen image improves both speed and click-through. Before rebuilding, compress your current hero images with the JPG to WebP converter and the blog featured image resizer, since a lighter file is the quickest win.

Monitoring LCP over time

Fixing LCP once is not enough. New hero images, plugin updates and theme changes can undo the work. A light routine keeps it in check:

  • Run PageSpeed Insights on your top templates once a month.
  • Check the Core Web Vitals report in Search Console for new issues.
  • Add image size limits to your publishing checklist, so new heroes arrive already optimised.

A few minutes a month is enough to catch problems before they affect a large share of your pages.

A short monthly check takes little time and protects the improvements you have already made.

Checking the improvement

Lab tools such as PageSpeed Insights show the effect immediately, but the field data Google uses for rankings updates over a rolling 28 day window. Make the changes, confirm the lab score improves, then watch the Core Web Vitals report in Search Console over the following weeks. For most image-led pages, the steps above are enough to move LCP well under 2.5 seconds.