Skip to content
Start a project

Shopify Guides

How to Speed Up a Shopify Store: Theme, App and Image Fixes That Work

Shopify speed optimization in the right order: read real-user data, cut apps and leftover code, fix the hero image, defer scripts, then check.

By 8 min readUpdated

Dev Artistry Hub cover: how to speed up a Shopify store with theme, app and image fixes
In this article — 12 sections

Quick answer: Shopify speed optimization works best in a fixed order. First read the web performance report in your Shopify admin, which uses real visitors' data. Then remove apps you do not need and the code they leave behind, fix the first image a shopper sees (the hero or main product photo), defer scripts that do not need to run straight away, and trim the tag manager. Check the result on the same report a few weeks later. Shopify's own list of causes points the same way: most of what slows a store was added to it.

Shopify names the three biggest factors itself: "Your online store theme", "The apps you've installed", and "Any additional third-party code you've manually added to your store, including tag managers and the tags within them" (Shopify Help). This guide works through them, with the theme rules Shopify publishes for developers and the code to apply them. Everything quoted was read on Shopify's and Google's pages on November 28, 2026.

Step 1: Measure With Real-User Data First

In your admin, the web performance report shows how the store performs on the three Core Web Vitals, "based on real user data from the past 30 days" (Shopify Help). The summary sits on the Themes page.

Google's Core Web Vitals thresholds tell you what "good" means:

MetricWhat it measuresGood
Largest Contentful Paint (LCP)How fast the main content appearsWithin 2.5 seconds
Interaction to Next Paint (INP)How fast the page responds to a tap200 milliseconds or less
Cumulative Layout Shift (CLS)How much the page jumps while loading0.1 or less

Google measures these at "the 75th percentile of page loads", so a store passes when three quarters of real visits meet the target, not when one test on your fast computer does.

Two practical notes. Shopify's report "might be delayed by up to 36 hours", so wait before judging a change. And a lab test (PageSpeed Insights, Lighthouse) varies from run to run: use it to check a specific fix, and the real-user report to decide what to fix.

Which metric is failing tells you where to look:

  • LCP poor: the hero or main product image (Steps 4 and 5).
  • INP poor: too much JavaScript. Shopify says that when INP is poor, "most likely you have too much JavaScript in your store from either theme code, app code" or third-party code (Steps 2, 3 and 6).
  • CLS poor: images without sizes, late-loading banners, or fonts swapping in (Steps 5 and 7).

Step 2: Remove the Apps You Do Not Need

Shopify's guidance is blunt: "Too many apps loading assets on your storefront can slow performance", so "Review your installed apps and remove any that aren't essential for sales."

Go through the app list one by one and ask what each one earns. Two pop-up apps, two review apps, an app installed for a sale that ended last spring: each one may load scripts on every page, for every visitor. Our guide to Shopify conversion rate optimization ranks app clean-up among its fixes.

Step 3: Clean Up the Code Apps Leave Behind

This is the step most store owners never hear about. Shopify says: "Uninstalling an app doesn't automatically remove its code from your theme", and "You might need to contact the app developer for complete removal instructions."

So a store can be slow because of an app you removed a year ago. Look in the theme's code for snippets and script tags named after apps you no longer use, and ask the app developer how to remove them cleanly.

Before you edit any theme code, duplicate the theme. Shopify's instructions are to "Duplicate your theme to create a backup copy", which "makes it easy to discard your changes and start again if you need to" (Shopify Help).

Step 4: Fix the First Image a Shopper Sees

On a typical store page the largest thing on the first screen is an image: the home page hero or the main product photo. That image usually decides LCP.

Shopify's developer guidance has one rule here that many themes break: "Never apply loading="lazy" or use a JavaScript-based lazy loader on the primary LCP target", and "Always load images visible in the initial viewport eagerly" (Shopify Dev). Lazy loading is good for images further down the page; on the hero it makes the most important image wait.

Shopify also advises against a CSS background image for this content: "Use <img> instead of CSS background images for hero and LCP content" (Shopify Dev).

In a theme, the hero image done right looks like this:

{{ section.settings.image
  | image_url: width: 1920
  | image_tag:
    loading: 'eager',
    fetchpriority: 'high',
    widths: '480, 750, 1100, 1500, 1920',
    sizes: '100vw'
}}

image_url and image_tag do the hard work: Shopify says they handle "generating srcset attributes, adding width and height to prevent layout shift". The widths list gives the browser a choice of sizes; Shopify's guidance says "Four to six widths are usually sufficient." sizes tells the browser how wide the image displays, so a phone downloads a phone-sized file.

Shopify's image_tag also lazy-loads automatically from the fourth section of a page onward, which is why the order of sections on your home page matters: keep the hero near the top.

Also on images:

  • Resize to the size it is shown at. Shopify asks you to "resize images to match their display size". A 6,000-pixel photo shown 1,100 pixels wide is wasted download.
  • Use the right format. Shopify recommends "JPG for photos, PNG for graphics with transparency". It "automatically compresses JPG images" and serves them through its image CDN, often as WebP, so you do not need a compression app for that.
  • Replace hero sliders with one strong image where you can. Shopify suggests you "compare your web performance before and after activating" sliders and carousels.

Step 5: Stop the Page From Jumping

CLS is the jump you see when a banner, image or font arrives late and pushes content down.

  • Images output through image_tag get width and height, so the browser reserves their space. Images added with plain <img> tags in custom code often do not.
  • Announcement bars and pop-ups injected by apps after the page loads are a common cause. Shopify's developer guidance also says to "Avoid full-screen dialogs and overlays that cover main content on page load."
  • Custom fonts can shift text when they swap in. Shopify notes that fonts are "a render-blocking resource by default and cause visible layout shift when they swap in". Use one or two font families and only the weights you need.

Step 6: Defer Scripts and Trim the Tag Manager

Shopify's developer guidance for JavaScript is to "load only what's needed, only when it's needed". In practice:

  • "Use the defer attribute on non-critical scripts." A theme script loaded like this does not block the page from showing:
<script src="{{ 'product-gallery.js' | asset_url }}" defer></script>
  • "Use async only for independent third-party scripts where execution order doesn't matter."
  • "Audit all scripts, including apps, tracking pixels, and theme code."
  • Audit the tag manager. Shopify's help says to "Audit your tag manager to remove any unused or low-value tags." Every tracking tag should have an owner and a reason. A heatmap nobody has opened in six months is pure cost.
  • Switch off A/B test snippets between tests. Shopify advises to "Disable anti-flicker snippets when no tests are running."

Shopify also makes a point worth repeating to anyone who edited the theme: "Badly written first-party code is just as damaging as a poorly implemented third-party script."

Step 7: Lighten the Theme

  • Fewer sections on long templates. Shopify says to "Avoid adding too many sections to page templates in your theme."
  • Paginate large collections. Shopify suggests you "consider activating pagination to limit the number of products that load at one time".
  • Go easy on animation. "Animations can slow down pages."
  • Consider a clean theme if yours has years of edits layered on it. For themes in its Theme Store, Shopify requires "a minimum average Lighthouse performance score of 60 across the home page, product page, and collection page", so a current theme from the store starts from a tested base. Our comparison of a Shopify theme vs a custom theme helps decide when a rebuild is worth it.

Step 8: Check the Result

  1. Run a lab test on the same three pages (home, a collection, a product) before and after each change.
  2. Change one thing at a time, so you know what helped.
  3. Watch the web performance report over the following weeks as real-user data catches up.

Step 9: Keep It Fast

Speed drifts back as apps, tags and sections are added. Put a quarterly check in the calendar: review the app list, the tag manager and the web performance report. Our Shopify store audit includes these checks alongside the rest of the store.

Do Speed Booster Apps Work?

Be careful with them. A store is often slow because of the scripts apps add, and a speed app is another app. Shopify already compresses JPG images and serves them through its CDN, and the fixes above (fewer apps, a correctly loaded hero image, deferred scripts) address the causes directly. If you try one, measure before and after on the real-user report.

Frequently Asked Questions

Why is my Shopify store so slow?

Usually because of the three factors Shopify names: the theme, installed apps, and third-party code such as tag managers. A lazy-loaded hero image, leftover code from removed apps and too many sections are the most common specifics.

How do I check my Shopify store speed?

Use the web performance report in your Shopify admin, which is based on real user data from the past 30 days, and compare it with Google's thresholds: LCP within 2.5 seconds, INP of 200 milliseconds or less, CLS of 0.1 or less.

What is a good speed score for a Shopify store?

Judge real-user Core Web Vitals rather than a single lab score. As a reference point, Shopify requires Theme Store themes to average a Lighthouse performance score of at least 60 across the home, product and collection pages.

Does Shopify compress images automatically?

Shopify says it "automatically compresses JPG images" and serves images through its image CDN, often as WebP. You still need to upload images at a sensible size for where they are shown.

How long until speed changes show in Shopify's report?

The report can be delayed by up to 36 hours, and because it covers 30 days of real visits, a change takes a few weeks to show fully.

Final Takeaway

Speeding up a Shopify store is mostly subtraction: fewer apps, less leftover code, fewer tags, and a hero image that loads first instead of last. Measure with real-user data, change one thing at a time, and recheck every quarter.

If you would rather have it done for you, our Shopify development team does speed clean-ups, and a single fix is a flat $100.

How this article was made: researched and drafted with AI assistance, checked against the official sources linked above, and approved for publishing by Syed Asad Mehmood.

  • #Shopify
  • #Speed
  • #Core Web Vitals

Share this article

We reply within one business day

Planning a website?

Tell us what you are building and we will tell you how we would approach it.

All articles