Page speed

See how fast your store is for real visitors, what the theme does for you, and the choices that slow a store down.

A fast store keeps shoppers moving. The theme takes care of its own loading. What you add to it is what you control, and apps and large media usually matter most.

How to measure

In your admin, go to Analytics > Reports, and search for "web performance". You can also open the summary from Online Store > Themes. Shopify scores three things:

MeasureWhat it meansGood is
Largest Contentful PaintHow fast the main content appears2500 ms or less
Interaction to Next PaintHow fast a page reacts to a click200 ms or less
Cumulative Layout ShiftHow much the page jumps while loading0.1 or less

See Shopify's reports guide. Before changing anything, look at the numbers, then measure again after. Change one thing at a time, so you know what helped.

What the theme already does

  • Each section loads its own stylesheet and script only on pages that use it.
  • Parts that are hidden or further down, such as the cart drawer and footer, load their styles without holding up the first paint.
  • Images come in several sizes, so each screen gets one that fits. Images lower on the page wait until people scroll near them.
  • Text shows at once in a fallback font while your theme font loads.

You do not need to set anything for these.

What you control

Apps

This is usually the biggest factor. Each app can add code to every page. Remove the ones that do not earn their place. An uninstalled app can leave code behind in your theme, so ask its developer how to remove it fully.

Before adding an app for something small, check whether the theme already does it. It has blocks for badges, stock status, size guides, comparison and a newsletter popup.

Images and video

Follow Prepare your images. Upload at the size you need. Shopify compresses and resizes, but a huge file still costs more.

The first image on a page matters most, since it is usually the slowest thing to appear. Avoid videos in the first section on a phone unless they earn it: give the slide a good cover Image, and add a Mobile image where you can.

The Hanger slideshow on a phone, with a tall image filling the screen and the text over it

Seen in the Hanger demo

Number of sections

Long pages cost more. Shopify's advice is to avoid many sections on a page template. If your homepage scrolls for a long time, cut the sections that repeat a message.

Products per page

Products per page on a collection runs from 8 to 48. More products on one page means more images. The default of 24 is a good start. See Product grid.

Fonts

Each font family and weight is one more file to download. Keeping to one or two families helps. In Typography, a system font needs no download at all.

Tags and custom code

Review your tag manager and remove tags you do not use. See Custom CSS and Liquid for your own code.

Keep an eye on it

Check the report after adding an app, and after a large change to your homepage. For more detail, see Shopify's guide to improving performance.

On this page