Guide · 20 November 2026

How to add a loading screen to a Shopify store

Three ways to put a loading screen on a Shopify store: a snippet in the theme, a GIF, or an app embed. The code for the first, and the five mistakes that make a loading screen feel slow.

A loading screen is what a visitor sees while your shop loads: a cover in your colours, usually with your logo, that leaves when the page is ready. Designers call it a preloader; you will also see splash screen and intro animation. They are the same thing. Shopify themes do not ship with one, so there are three ways to get it.

1. A snippet in the theme

If you are comfortable in the code editor, a basic loading screen is about twenty lines. In your admin, open Online Store, Themes, Edit code, then layout/theme.liquid, and paste this straight after the opening <body> tag:

<div id="loader" aria-hidden="true">
  <img src="{{ settings.logo | image_url: width: 320 }}" alt="" width="160">
</div>
<noscript><style>#loader { display: none; }</style></noscript>
<style>
  #loader { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: #fff; transition: opacity 0.4s; }
  #loader.done { opacity: 0; pointer-events: none; }
  @media (prefers-reduced-motion: reduce) { #loader { display: none; } }
</style>
<script>
  (function () {
    var loader = document.getElementById('loader');
    function done() { loader.classList.add('done'); }
    if (sessionStorage.getItem('loaderSeen')) { loader.style.display = 'none'; return; }
    sessionStorage.setItem('loaderSeen', '1');
    window.addEventListener('load', done);
    setTimeout(done, 4000);
  })();
</script>

What each part is for:

settings.logo is the logo setting in Dawn and the themes built on it. If nothing shows, look up the name of your theme’s logo setting in config/settings_schema.json.

What you get is a white screen with your logo that fades. It is honest work, and it is yours to maintain: when the theme is updated, edited files are not updated for you, and the snippet has to be carried over to the new version.

2. A GIF or a ready-made spinner

The next step up is to swap the logo for an animated GIF, or to pick a spinner from a list. It moves, and it takes no design work. The cost is in what it says and what it weighs. A spinner tells a visitor to wait, in the same shape they have seen on a thousand other sites. A GIF is the heaviest way to move a logo, and it is fetched ahead of the page it is covering.

3. An app embed

An app embed runs inside the theme without editing it: you switch it on in the theme editor under App embeds, and switch it off the same way. Segue has nine loading screens, each one a short piece of motion built from your own logo and your words, in your theme’s colours or three of your own. It plays when a visit starts, never between pages, and it leaves when the page is ready.

Pixel, looping in a demo shop: blocks build the logo, sharpen into it, and leave in bars.

Five mistakes that make a loading screen feel slow

Which one to choose

The snippet, if a plain cover is all you want and you are happy to look after it. An app, if you want the motion designed and made from your logo. There is more on what a preloader is for in the preloader guide, and on search and speed in Do preloaders hurt SEO?. Segue is on the Shopify App Store and is free to use.