How to speed up a slow Shopify store

How to speed up a Shopify store by finding what is slow, removing app bloat and leftover code, fixing images and theme issues, and measuring real-user data.

Shopify's servers are fast, so a slow Shopify store is almost never a hosting problem. It is nearly always caused by what has been added on top: too many apps injecting scripts, leftover code from apps you uninstalled, oversized images, a heavy theme, and third-party tracking tags. Fix those and most stores get noticeably faster without changing platform.

The biggest single win is usually an app audit. The second is the homepage hero and collection images. After that come theme code clean-up and controlling third-party scripts.

Here is how I approach Shopify speed work, in the order that gives the most improvement for the least risk.

Step 1: Measure the right thing

Before changing anything, get a baseline. Use two sources:

  • Shopify's web performance report. In the admin, under Online Store and Themes, Shopify shows a performance report based on real visitor data for Core Web Vitals. This reflects real customers on real devices.
  • PageSpeed Insights at pagespeed.web.dev. Test the homepage, one collection page, and one product page on mobile. The top section shows real-user field data if your store has enough traffic. The lab score below helps diagnose problems.

Ignore the temptation to chase a perfect lab score of 100. A store with good field data and a lab score in the 60s is doing fine. A store with poor field data is losing sales even if the lab score looks decent. If the metric names are unfamiliar, see my guide to Core Web Vitals for business owners.

Duplicate your live theme before editing. Make changes on the copy, preview them, then publish.

Step 2: Audit your apps

Apps are the most common cause of slow Shopify stores I work on. Many add JavaScript and CSS to every page, even if their feature only appears on the product page or not at all.

Go through every installed app and ask:

  • Is this app still used?
  • Does it add anything to the storefront, or only work in the admin?
  • Could two apps be replaced by one, or by a theme feature?
  • Does the theme already do this natively, such as product reviews display, size charts or announcement bars?

I find it helps to make a simple list with three columns: the app, what it does, and which pages it affects. Then test the store's speed with the theme preview while temporarily disabling app embeds one at a time. If one app is responsible for a big share of the script weight, you will see it quickly, and you can decide whether the feature is worth that cost or whether a lighter app does the same job.

Uninstall what you do not need. Modern apps built with theme app extensions remove their storefront code when uninstalled or when you disable their app embed in the theme editor. Older apps often inserted code directly into theme files and left it behind.

Step 3: Remove leftover app code

After uninstalling apps, check the theme for code they left behind:

  1. In the theme code editor, search theme.liquid and the snippets folder for the app's name or domain.
  2. Look for {% render %} or {% include %} tags calling snippets that belong to removed apps.
  3. Look for <script> tags loading files from app domains you no longer use.
  4. Remove them on your duplicate theme, then preview the store carefully.

In the theme editor, also open App embeds and switch off any embed you are not actively using. This is the quickest win in many stores.

Step 4: Fix images

Product and lifestyle photos are usually the biggest files on a store. Shopify's CDN can resize and convert images automatically, but only if the theme asks for the right size.

Good practice:

  • Upload images at a sensible maximum, such as 2,048 pixels on the longest side, not 6,000-pixel originals.
  • Make sure the theme uses responsive images with srcset, so phones download smaller versions.
  • Lazy load images below the first screen.
  • Never lazy load the hero image or the main product image. These are usually the Largest Contentful Paint element.

In a modern Liquid theme, a hero image that loads quickly and responsively looks like this:

{{ section.settings.image
  | image_url: width: 1600
  | image_tag:
    loading: 'eager',
    fetchpriority: 'high',
    widths: '480, 800, 1200, 1600',
    sizes: '100vw'
}}

The image_tag filter generates srcset from the widths, so each device downloads only what it needs. Shopify's Liquid reference documents these filters.

Step 5: Simplify the homepage

Homepages tend to collect sections over time: a slideshow, a video, three featured collections, Instagram feed, reviews carousel, logo list, newsletter popup. Each adds weight.

Ask what the homepage needs to do: show what you sell, build trust, and get visitors into a collection or product. Then cut:

  • Replace slideshows with a single strong hero image and headline
  • Replace autoplay background videos with an image, or load video only on click
  • Limit featured product grids to the products that actually sell
  • Remove embedded social feeds, which load heavy third-party scripts
  • Delay popups until the visitor has scrolled or spent some time on the page

Every section you remove is one less thing to load, style and maintain. In my experience, a shorter homepage with a clear path to the best-selling products rarely costs sales, and it often helps.

Step 6: Control third-party scripts

Marketing tags add up fast: analytics, ad pixels for several networks, heatmaps, chat, affiliate tracking. Each runs JavaScript in the visitor's browser, which hurts both loading and how quickly the page responds to taps.

  • Remove tags for platforms you no longer advertise on.
  • Use Shopify's customer events and official sales channel integrations for pixels where possible, rather than pasting scripts into the theme.
  • Load chat widgets only after interaction or on specific pages.
  • Check for duplicate tags, such as the same analytics tag added twice by an app and by hand.

Step 7: Consider the theme itself

If the store is still slow after the steps above, the theme may be the problem. Some older or feature-packed premium themes ship a lot of JavaScript and CSS for options you never use.

SituationWhat I usually recommend
Old vintage theme, not Online Store 2.0Move to a modern 2.0 theme
Modern theme, heavily customised over yearsClean up unused sections and code
Theme loads large libraries like jQuery and sliders everywhereReplace with a leaner theme
Theme is fast in demo but slow in your storeThe cause is apps and content, not the theme

Shopify's own free themes, such as Dawn or Horizon, are a good benchmark. If your store is much slower than a test store on one of them with the same products, your theme or apps are adding the weight.

The short version

  • Measure field data in Shopify's performance report and PageSpeed Insights.
  • Uninstall unused apps and switch off unused app embeds.
  • Remove code left behind by old apps.
  • Serve responsive images and never lazy load the hero.
  • Simplify the homepage and remove sliders and social feeds.
  • Cut and control third-party scripts.
  • Replace the theme only if the steps above are not enough.

If you would rather have someone do this safely on a duplicate theme, my Shopify development and speed optimization services cover exactly this work. Contact me with your store URL.

Available for new projects

Need a hand with this?

Tell me what you need: a new site, a fix, a SaaS or an app. You'll get a clear plan and price within a day.

Start a project WhatsApp me