Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Lazy loading the LCP hero image: how to find and fix it

SEO-202Medium impactPartlyBy FunnelGuardPublished Updated
On this page

What this issue is

Largest Contentful Paint (LCP) is the time until the biggest visible element, often a hero image, is drawn on screen. Lazy loading tells the browser to fetch an image only when it is about to scroll into view. That is great for images far down the page. It is harmful for the hero image, which is in view the moment the page opens.

Why it costs you leads or sales

A lazy-loaded hero is discovered late. The browser has to build the layout first, decide the image is visible, and only then start the download. Your headline and call-to-action may appear while the main visual is still missing, and the LCP time rises. Google uses Core Web Vitals as part of its page experience signals, and slow pages tend to lose visitors before they see your offer.

How a lazy-loaded hero delays the page
  1. HTML arrivesPage structure is loaded
  2. Lazy-load logic runsBrowser or script decides if the image is visible
  3. Hero image requestedDownload starts late
  4. LCP recordedSlow time, weaker page experience

The image request starts late because the browser waits for layout and scripts.

LCP with and without lazy loading on the heroExample numbers
LCP with and without lazy loading on the hero (example)Hero lazy-loaded: 3.6 seconds; Hero eager + high priority: 2.1 seconds0133.62.1Hero lazy-loadedHero eager + high pri…seconds

Example: illustrative numbers for one page, not a measured result.

How to check if your site has it

Find out if your LCP image is lazy loaded
  1. Run PageSpeed Insights

    Test your key landing page on mobile at pagespeed.web.dev. Look at the diagnostic named 'Largest Contentful Paint element' and the audit 'LCP image was lazily loaded' if it appears.

  2. Identify the LCP element in Chrome

    Open DevTools, go to the Performance tab, record a page load, and click the LCP marker. It shows which element was the LCP.

  3. Inspect that element's HTML

    Right-click the hero, choose Inspect, and check for loading="lazy", a data-src attribute, or a class such as lazyload.

  4. Check the page source

    View source and search for the hero file name. If the real URL only appears in data-src or is missing from the raw HTML, it relies on JavaScript.

How to fix it

The goal is the same everywhere: the hero image loads right away, with high priority, and everything below the fold stays lazy. The correct markup looks like this.

Hero image: eager and high priorityhtml
<img src="/images/hero.jpg" alt="Describe the hero" width="1200" height="600" fetchpriority="high" decoding="async">

<!-- Images below the fold can stay lazy -->
<img src="/images/feature.jpg" alt="Feature" width="600" height="400" loading="lazy">
Remove lazy loading from the hero by platform
  1. Check core behaviour

    Recent WordPress versions skip lazy loading on the first content image in many cases, but themes and builders can override this. Update WordPress and your theme first.

  2. Exclude the hero in your optimisation plugin

    In your caching or image plugin's lazy-load settings, look for an option to exclude images by number, class or URL, or to skip images above the fold. Names vary by plugin. Add the hero.

  3. Filter it in code if needed

    Use the wp_img_tag_add_loading_attr or wp_get_attachment_image_attributes filter to set loading to eager and add fetchpriority high for the hero image only.

How to confirm it's fixed

Confirmation checks
  • The hero img has no loading="lazy" and no lazyload class
  • The real image URL is in src in the raw HTML
  • fetchpriority="high" is present on the hero
  • PageSpeed Insights no longer shows 'LCP image was lazily loaded'
  • In DevTools Network, the hero request starts early in the waterfall
  • LCP on mobile is lower than before

How to prevent it happening again

Lazy loading usually comes back after a theme update, a new optimisation plugin or a redesign of the top section. Treat the hero as a special case in your template, not something set per page.

Prevention habits
  • Mark the hero image as eager in the theme or template, not per page
  • Re-test your main landing pages after every theme, plugin or builder update
  • Review lazy-load plugin settings when you install or change one
  • Keep hero images compressed and correctly sized
  • Track LCP over time so a rise gets noticed

How FunnelGuard handles this

FunnelGuard detects this issue only partly. When its robot visitor runs your journeys, it measures LCP, so you can see when a page becomes slow. What it does not do is name the cause: it will not tell you that the hero image has loading="lazy" or that a plugin added it.

To cover the rest by hand, use the checks above. When FunnelGuard shows a high or rising LCP on a landing page, run PageSpeed Insights on that page, look for the 'LCP image was lazily loaded' audit, and inspect the hero's HTML. You can start with the free plan (1 site, 2 journeys, daily checks, no card), and the free read-only website audit is also available.

Questions people ask

Should I lazy load my hero image?

No. The hero image is usually the LCP element and is visible as soon as the page loads, so it should load right away. Lazy load only images that sit below the fold.

Why is my LCP image lazy loaded?

Most often a theme, page builder or optimisation plugin adds loading="lazy" to every image, including the first one. Some lazy-load scripts also hide the real src in data-src until JavaScript runs.

How do I find out if my LCP image has loading=lazy?

Run PageSpeed Insights and look for the 'LCP image was lazily loaded' audit, or inspect the hero image in Chrome DevTools and check for loading="lazy" or a data-src attribute.

What is fetchpriority high and should I use it on the hero?

fetchpriority="high" is an attribute that tells the browser to download an image earlier than others. It is a good fit for the single LCP hero image. Use it on one image only, because it loses meaning if you add it everywhere.

How do I stop WordPress lazy loading my hero image?

Update WordPress and your theme, then exclude the hero in your caching or image plugin's lazy-load settings. If that is not possible, use the wp_img_tag_add_loading_attr filter to set loading to eager for that image.

Does lazy loading the hero image hurt SEO?

It can. It slows LCP, one of the Core Web Vitals that Google uses in its page experience signals, and slow pages tend to lose visitors. Content relevance still matters more, but a fast hero helps.

Can FunnelGuard tell me if my hero image is lazy loaded?

Only partly. FunnelGuard measures LCP on your journeys, so it shows when a page is slow, but it does not name the cause. You need to inspect the hero's HTML or use PageSpeed Insights to confirm lazy loading.

Does FunnelGuard catch this?

Partly

FunnelGuard checks part of this.

How: LCP measured, cause not named.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.