Skip to content
FunnelGuard

Fix guide by FunnelsGuard

LCP image lazy-loaded: how to find and fix loading=lazy on hero

PRF-007High impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

Lazy loading tells the browser to delay an image until it is near the screen. It is a good idea for images far down the page. It is a bad idea for the image people see first.

Largest Contentful Paint (LCP) is the time until the biggest visible element, often the hero image, is drawn. If that image has loading="lazy", the browser does not start fetching it right away. It first has to work out the layout and confirm the image is in view. That adds a delay to the one image that matters most.

The problem: a lazy hero imagehtml
<img src="/images/hero.jpg" alt="Spring sale" width="1200" height="600" loading="lazy">

Why it costs you leads or sales

A slow hero means a blank or half-built page while visitors wait. On a paid landing page, people who click an ad and see nothing may leave before the form or buy button appears. You still pay for that click.

How a lazy hero delays the page
  1. Ad clickVisitor opens the landing page
  2. HTML parsedHero img found with loading=lazy
  3. Hero drawn lateFetch waits for layout
  4. Form or CTA usedSome visitors have already left

The browser finds the image early but waits before fetching it.

LCP with and without lazy heroExample numbers
LCP with and without lazy hero (example)Hero lazy-loaded: 3.8 seconds; Lazy attribute removed: 2.6 seconds0133.82.6Hero lazy-loadedLazy attribute removedseconds

Example: illustrative numbers for a mobile page. Your own results will differ.

How to check if your site has it

Three ways to spot a lazy LCP image
  1. Run PageSpeed Insights

    Enter your landing page URL. Under Diagnostics, look for the message that the LCP image was lazily loaded, or for an LCP request discovery audit.

  2. Use Chrome DevTools

    Open the Performance panel, record a page load and click the LCP marker. DevTools shows which element it is. Then inspect that element in the Elements panel and look for loading="lazy".

  3. View the page source

    Right-click, choose View page source and search for the hero image filename. Check its img tag for loading="lazy". Do this on mobile and desktop widths, because themes can swap images.

How to fix it

The rule is simple: do not lazy-load anything visible when the page first opens. Remove loading="lazy" from the hero. You can also add fetchpriority="high" so the browser fetches it first (see PRF-008).

The fix: an eager hero imagehtml
<img src="/images/hero.jpg" alt="Spring sale" width="1200" height="600" fetchpriority="high">
Fix by platform
  1. Skip lazy loading on the hero

    WordPress adds loading="lazy" to images by default. Recent versions usually skip the first content image, but themes and page builders can override that. Check your theme or builder image settings first.

  2. Check your optimisation plugin

    If you use a performance or image plugin (for example WP Rocket, LiteSpeed Cache or Smush), open its lazy load or media settings and exclude the hero image, or exclude the number of images above the fold.

  3. Or filter it in code

    Add a filter to your child theme: add_filter('wp_img_tag_add_loading_attr', function($value, $image, $context){ return (strpos($image, 'hero') !== false) ? false : $value; }, 10, 3); Change 'hero' to part of your image filename or class.

Hero image loading

Before

  • Hero has loading=lazy
  • Fetch starts after layout
  • LCP is late

After

  • Hero has no lazy attribute
  • Fetch starts as soon as the HTML is read
  • LCP is earlier

How to confirm it's fixed

After you publish
  • Clear page, plugin and CDN caches.
  • View page source and confirm the hero img tag has no loading="lazy".
  • Rerun PageSpeed Insights on mobile and check the lazy LCP warning is gone.
  • Compare LCP before and after, using several runs as results vary.
  • Confirm images below the fold still lazy-load.

How to prevent it happening again

Habits that keep it fixed
  • Test your key landing pages after theme, plugin or builder updates.
  • Exclude the hero from lazy load rules in your optimisation plugin.
  • Add a launch check for new landing pages: view source and check the first image.
  • Review lazy loading when you swap the hero or change templates.
  • Run PageSpeed Insights or Lighthouse on every new paid landing page.

How FunnelGuard handles this

FunnelGuard does not check for a lazy-loaded LCP image today. It is a possible future check.

What FunnelGuard does do is run your real customer journeys on a schedule, such as lead forms, checkouts and booking buttons, from the EU or the US. It checks each step, the tracking hits sent to ad and analytics platforms, and whether test leads reach your inbox and CRM. If a journey breaks, you get one alert with a screenshot and a likely cause. That covers failures after the page loads, not hero image loading settings.

Questions people ask

Why is my hero image slow even though it is compressed?

Size is only one cause. If the image has loading="lazy", the browser waits to fetch it until layout is done, so it appears late even when the file is small. Remove the attribute from the hero and retest.

Should I lazy load the hero image?

No. Lazy loading is for images below the fold. The hero is usually the Largest Contentful Paint element, so it should load as early as possible.

How do I remove loading=lazy from one image in WordPress?

Check your theme, page builder or optimisation plugin for a setting that excludes the first image. If there is none, use the wp_img_tag_add_loading_attr filter in a child theme to return false for the hero image.

What does 'LCP image was lazily loaded' mean in Lighthouse?

It means the element Lighthouse picked as Largest Contentful Paint has loading="lazy". That delays its download. Remove the attribute from that image to fix it.

Is loading=eager better than just removing loading=lazy?

Both give the same result in practice, because eager is the browser default. Removing the attribute is simpler. Add fetchpriority="high" if you also want the browser to fetch the hero first.

Does lazy loading hurt SEO?

Lazy loading below-the-fold images is fine. Lazy loading the LCP image can slow your LCP, which is part of Google's Core Web Vitals, so it can work against you.

Does FunnelGuard detect a lazy-loaded hero image?

Not yet. It is a possible future check. For now, use PageSpeed Insights or Lighthouse to check your landing pages.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

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.