Skip to content

Main image loads late

The browser finds the page’s main image late: it’s set to load lazily, added by a script or set as a background, so it starts downloading after other files.

Why it matters

The main image is what makes the page look ready: every moment before it starts downloading is added to the time visitors wait.

How to fix it

  1. Turn off lazy loading for the first image on the page, such as the hero or the first product photo, and keep it for the images further down.
  2. Put the main image in the page as an ordinary image, not a background or a slideshow added by a script.
  3. Mark it as high priority if your platform or theme has a setting for it.
On WordPress
  1. WordPress 6.3 and later leaves the first large images on the page out of lazy loading and marks the main one high priority itself. If the main image still loads late, a plugin (lazy loading, images or caching), a slider or a page builder is usually the cause: turn off lazy loading for that image there, or use an ordinary Image block.

WordPress help: Image performance enhancements in WordPress 6.3 (opens in a new tab)

On Shopify
  1. Put the main image in an image banner, slideshow or hero section, and drag that section to the top of the page in the theme editor: Shopify’s own themes load images in the first sections straight away and give the first one high priority. With another theme, ask its developer.

Shopify help: Load above-the-fold and below-the-fold sections differently with section.index (opens in a new tab)

On Wix
  1. Wix has no setting for this: its lazy loading can’t be turned off.

Wix help: Site Performance: How Wix Improves a Site’s Loading Time (opens in a new tab)

On Webflow
  1. Select the main image and, in Element settings › Image settings, set Type to Eager. Leave the images further down on Lazy.

Webflow help: Optimize your images (opens in a new tab)

In code (HTML, CSS or Tailwind)
  1. Leave out loading="lazy" on the main image and add fetchpriority="high".
    <img src="hero.webp" width="1600" height="900" fetchpriority="high" alt="…">

MDN: <img>: the image embed element (opens in a new tab)

Common mistakes

  • Lazy-loading every image, the first one included: lazy loading is only for images that start below the screen.

Check your fix

Once the change is live, check the page again.

Want it done for you?

We’re a product design studio. We can make this fix, and check the rest of your site while we’re at it.

Book a call (opens in a new tab)