Home / Fix guides / Speed and Core Web Vitals

Largest Contentful Paint image lazy loaded: how to fix it

Your biggest above-the-fold image (usually the hero or banner) is marked to load late, so the page looks slow to visitors and scores worse on Largest Contentful Paint. The fix is to remove lazy loading from that one image and tell the browser to load it first.

When a page loads, Google measures how long the largest visible item takes to appear. That is Largest Contentful Paint, or LCP. On most business sites that item is a hero photo, a banner or the main product image. Lazy loading tells the browser to wait before downloading an image until the visitor scrolls near it. That is useful for images far down the page, but it works against you when it is applied to the first big image people see.

What the problem is and what people see

A lazy-loaded LCP image means the main picture at the top of your page carries a lazy loading instruction, so the browser holds it back. Visitors see a blank or empty area where the picture should be, then it pops in a moment later. On a slow phone connection that gap can be long.

Speed tools report it with messages such as "Largest Contentful Paint image was lazily loaded". It usually happens by accident: a theme, a page builder or a speed plugin applies lazy loading to every image on the page, including the first one.

Why it matters

Google treats LCP as one of its Core Web Vitals. A good LCP is 2.5 seconds or less. A slow one can count against your pages in search, and it also costs you visitors. People who wait for the top of a page to appear often leave before they read anything, which hurts enquiries and sales.

This is also one of the cheaper speed problems to fix. Often it means changing one setting or one line of code, with no redesign.

How to check if your site has it

All of these are free:

  • PageSpeed Insights (pagespeed.web.dev): enter your page address and open the diagnostics list. Look for a note that the LCP image was lazy loaded, or an LCP breakdown showing a long "resource load delay".
  • Chrome DevTools: open the page, right-click the main image and choose Inspect. Look at the image tag for loading="lazy". Some lazy-load tools instead use data-src or a class such as lazyload, which means the real address is hidden until a script runs.
  • View source: right-click the page, choose View page source, and search for the hero image file name. See if its tag includes loading="lazy".

Test both the home page and your most visited pages, because each template can behave differently. Also test the mobile view, since the LCP element is often a different image on a phone.

How to fix it in general

The goal is for the LCP image to load as early as possible. There are three parts.

  1. Remove lazy loading from that image only. Delete loading="lazy" or change it to loading="eager". Keep lazy loading on images further down the page.
  2. Add fetchpriority="high" to the same image. This tells the browser it is the most important picture on the page.
  3. Make sure the image is not hidden behind a script. If it uses data-src, a slider script or a CSS background image that loads late, it may need to become a normal image tag, or be preloaded.

A correct hero image tag looks like this:

<img src="/images/hero.jpg" width="1200" height="600" alt="Our shop front" fetchpriority="high">

Notice there is no lazy loading, and the width and height are set so the page does not jump while it loads. Only the first, largest image should get this treatment. If you mark many images as high priority, none of them stands out.

If the image file itself is very large, fixing the loading order will only help so far. See large images slowing the page for resizing and compressing. If other files block the page from drawing, render-blocking resources may also be part of the delay.

Fixing it on common platforms

Menu names change between versions and themes, so treat these as pointers.

  • WordPress: recent versions try to skip lazy loading for the first large image, but themes, page builders and caching or optimisation plugins often override that. Check the lazy load option in your speed plugin (WP Rocket, for example, lets you exclude images from lazy loading). See the WordPress guide for details.
  • Shopify: many themes lazy load images by default, and hero or banner sections sometimes include a setting for the first image. If the theme has no option, a developer can edit the section file so the first image loads eagerly. See the Shopify guide.
  • Elementor, Wix, Squarespace, Webflow: look in the image or section settings and in the site's performance settings for a lazy loading switch. Webflow lets you set an image's loading to eager. Some hosted builders control this automatically, in which case a smaller image or a different layout may be your only lever.
  • Next.js: on the image component, use the priority option (or preload in newer versions, depending on your Next.js version) for the hero image so it is not lazy loaded.
  • Hand-built sites: edit the HTML as shown above.

If you are not sure which tool is adding the lazy loading, turn off lazy loading in one place at a time and retest. Keep a note of what you changed so you can undo it.

How to confirm the fix worked

  1. Clear any caches: your caching plugin, your host's cache and any CDN cache.
  2. Open the page source again and confirm the hero image no longer has loading="lazy" and now has fetchpriority="high".
  3. Run PageSpeed Insights again on the same page. The lazy-load message should be gone and the LCP time should drop.
  4. Check the page on a real phone. The top image should appear without a visible gap.

Lab scores can move a little between runs, so test two or three times. The field data in PageSpeed Insights comes from real visitors over roughly the last 28 days, so it takes a few weeks to fully reflect a change.

How to stop it coming back

This problem tends to return when something changes the site.

  • Recheck after theme updates, plugin updates and new page builder templates.
  • When you add or swap a hero image, make sure the new one is not lazy loaded.
  • When you install or reconfigure a speed or image plugin, test the top of your key pages straight afterwards.
  • Ask your developer to make "first image above the fold is never lazy loaded" a standard rule.

SiteMonday runs a speed and Core Web Vitals check every year in week 4, with a written report and a ranked fix list, which gives you a regular point to catch this. SiteMonday finds and explains the problem. Making the change is up to you or your developer.

Step by step for your platform

Questions

Should I lazy load all images except the first one?

Lazy loading is a good default for images that start below the visible part of the page. Keep the main above-the-fold image eager, and check that any other large image visible on first load is not lazy loaded either.

Does lazy loading hurt SEO?

Used correctly, it does not. Used on the main top image, it slows LCP, which is a Core Web Vitals measure that can count against your pages in search.

What is the difference between loading eager and fetchpriority high?

Eager simply means do not delay the image. Fetchpriority high goes further and asks the browser to rank it above other downloads. For a hero image, use both.

My hero is a CSS background image. Does this still apply?

Background images are not lazy loaded by the loading attribute, but some themes and scripts delay them anyway. If it is your LCP element, a normal image tag or a preload is usually faster and easier to control.

I fixed it but PageSpeed Insights still shows a slow LCP. Why?

The image may be too large, the server may respond slowly, or other files may block rendering. Check the LCP breakdown in the report to see which stage takes the longest.

Can I fix this without a developer?

Often yes, if your platform or speed plugin has a lazy load setting you can switch off for the first image. If the theme code is involved, a developer can usually do it quickly.

Related problems