# Shopify lazy loading

> How Shopify

Canonical: https://scaplet.com/seo/shopify/lazy-loading

Guide Shopify Shopify · Performance

How Shopify's image_tag sets loading=lazy, how to keep the first-screen and LCP image eager, and how to check your theme for lazy-loaded hero images.

3 min

read

3

sources

Oct 29, 2026

updated

Scaplet Editorial Team

author

In one line

Shopify's image_tag filter sets loading to lazy automatically for images in sections further down the page, unless you apply preload. Shopify says not to lazy load images above the fold, and its performance guide says never to lazy-load the LCP image. Check your hero and first product image for loading=lazy.

30-second check

## Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fshopify%2Flazy-loading%20(%22Shopify%20lazy%20loading%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fshopify%2Flazy-loading%20(%22Shopify%20lazy%20loading%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fshopify%2Flazy-loading%20(%22Shopify%20lazy%20loading%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fseo%2Fshopify%2Flazy-loading%20(%22Shopify%20lazy%20loading%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 5 parts, 3 minutes.

1. [What image_tag does by default 01](#what-image-tag-does-by-default)
2. [Eager for the first screen, lazy for the rest 02](#eager-for-the-first-screen-lazy-for-the-rest)
3. [Preload and what it changes 03](#preload-and-what-it-changes)
4. [Why the LCP caveat is real 04](#why-the-lcp-caveat-is-real)
5. [Check it worked 05](#check-it-worked)

_01_Check it

## What image_tag does by default

Shopify's Liquid reference for `image_tag` says that if you don't apply the `preload` attribute, then `loading` is automatically set to `lazy` for images in sections further down the page. It also adds `width` and `height` based on the image dimensions, and generates a `srcset` by default. A `sizes` attribute appears only when you pass `sizes`.

That is Shopify's documented pattern for custom attributes. The same docs say "You shouldn't lazy load images [above the fold](/glossary/above-the-fold)" and suggest writing your own logic if the default doesn't work for your theme.

Override an attribute by passing a parameter with its name

```
{{ product | image_url: width: 200 | image_tag: class: 'custom-class', loading: 'lazy' }}
```

_02_From Shopify's theme performance guide

## Eager for the first screen, lazy for the rest

Recommendation

### Never lazy-load the LCP image

What it says

`loading="lazy"` on the LCP image delays it until after layout completes; always load images visible in the initial viewport eagerly

Recommendation

### Mark the LCP image with `fetchpriority="high"`

What it says

Tells the browser to fetch the LCP image before other resources

Recommendation

### Use `image_url` and `image_tag`

What it says

Gets automatic optimization and correct attributes instead of hand-built CDN URLs

Recommendation

### Include `width` and `height`

What it says

Prevents layout shift; `image_tag` adds them automatically

Illustration (not from Shopify docs): hero image, eager and high priority

```
{{ section.settings.hero | image_url: width: 1600 | image_tag: loading: 'eager', fetchpriority: 'high', sizes: '100vw' }}
```

This line is an illustration, not a Shopify example. It applies Shopify's documented rule that a parameter named like the attribute sets it, applied to the two attributes the performance guide recommends. Adjust the width and `sizes` to your layout, and check the [rendered HTML](/glossary/rendered-html) rather than trusting the Liquid.

_03_Check it

## Preload and what it changes

Shopify's `image_tag` docs say that when `preload` is set to `true`, a resource hint is sent as a Link HTTP header with a `rel` value of `preload`. Because the automatic lazy default applies only when you don't apply `preload`, a preloaded image isn't switched to lazy by that rule. Use it for the one image you know is the LCP candidate, not for a gallery.

Check this against your theme: the `preload` parameter is documented on the `image_tag` page, but how a given theme's sections pass it is theme-specific.

Preload the LCP image

```
{{ section.settings.hero | image_url: width: 1600 | image_tag: preload: true }}
```

_04_Explained

## Why the LCP caveat is real

web.dev analyzed browser-level image [lazy loading](/glossary/lazy-loading) on WordPress sites. WordPress's implementation lazy-loaded images above the fold, and in a lab test that delayed LCP on archive pages. An experimental fix that lazy loaded only images below the fold reversed the regression, with image bytes unchanged from the default. web.dev's explanation: not loading below-the-fold images means less network contention with the LCP image. The test used WordPress, not Shopify, so treat it as the reason behind Shopify's advice, not as a measurement of your store.

_05_How it works

## Check it worked

1. 1

### Find the first-screen images

Open the home page, a [collection page](/glossary/category-pages) and a product page, and note which images are visible before scrolling.
2. 2

### Inspect their markup

In DevTools, Elements panel, select each one and look at its `loading` attribute. Any first-screen image with `loading="lazy"` should be eager.
3. 3

### Fix in the section file

Pass `loading: 'eager'` for the first image in the section, keep the default for later ones, and re-inspect after saving.

Questions

## Asked a lot.

2 questions people ask next, answered from the sources on this page.

_01_ Does Shopify lazy load images by default?

With image_tag, loading is set to lazy automatically for images in sections further down the page, unless you apply preload.

_02_ Should I lazy load the hero image on Shopify?

No. Shopify's docs say not to lazy load images above the fold, and its performance guide says to never lazy-load the LCP image and to mark it with fetchpriority high.

Sources · 3

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- shopify.dev
- web.dev

1. 01 [image_tag | Shopify Liquid reference](https://shopify.dev/docs/api/liquid/filters/image_tag) shopify.dev · checked 2026-11-01
2. 02 [Theme performance best practices | Shopify developer docs](https://shopify.dev/docs/storefronts/themes/best-practices/performance) shopify.dev · checked 2026-11-01
3. 03 [The performance effects of too much lazy loading | web.dev](https://web.dev/articles/lcp-lazy-loading) web.dev · checked 2026-11-01

## Keep learning

[All platform guides](/seo)

[Learn Shopify speed optimization Ecommerce](/seo/shopify/page-speed) [Related LCP image is lazy-loaded Performance](/seo-issues/lazy-loaded-lcp-image) [Read next Shopify image SEO Ecommerce](/seo/shopify/image-seo) [Do Run a free site audit Free, about two minutes](/site-audit)

More in Shopify SEO
[Shopify 404 page](/seo/shopify/404) [Shopify AI crawlers](/seo/shopify/ai-crawlers) [Shopify breadcrumbs](/seo/shopify/breadcrumbs) [Shopify canonical tags](/seo/shopify/canonical-tags) [Shopify favicon](/seo/shopify/favicon) [Shopify Google Analytics](/seo/shopify/google-analytics) [Shopify Google Search Console setup](/seo/shopify/search-console) [Shopify hreflang](/seo/shopify/hreflang) [Shopify image SEO](/seo/shopify/image-seo) [Shopify lazy loading](/seo/shopify/lazy-loading) [Shopify noindex](/seo/shopify/noindex) [Shopify redirects](/seo/shopify/redirects) [Shopify robots.txt](/seo/shopify/robots-txt) [Shopify speed optimization](/seo/shopify/page-speed) [Shopify structured data](/seo/shopify/structured-data) [Shopify titles and meta descriptions](/seo/shopify/title-and-meta) [Shopify XML sitemap](/seo/shopify/xml-sitemap)

Terms on this page
[Above the fold](/glossary/above-the-fold) [Rendered HTML](/glossary/rendered-html) [Lazy loading](/glossary/lazy-loading) [Category pages](/glossary/category-pages)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

Run the free audit, then approve the fixes. Every change can be undone.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
