Guides7 min read

Your apps load on every page.

Apps slow a Shopify store through the scripts they load. How to list them, match them to apps, test cuts on a theme copy and measure on a phone.

Apps rarely slow a Shopify store because there are too many of them. They slow it through the scripts they load, usually on every page, often on pages where they do nothing, and sometimes long after the app was uninstalled. To find the ones that cost you, list what each page loads, match every script to an app, test removing it on an unpublished copy of the theme, and measure the difference on a phone.

On one Shopify store we sped up, the page loaded 154 scripts before the work and 15 after. The number of apps matters far less than that.

The short version

  1. Open your home page, a collection and a product on a phone-sized screen, and list every script each one loads.
  2. Match each script to an app, the theme or a tracking tag. Anything you can’t match is a candidate.
  3. Find the scripts that do nothing on that page, and the apps that do the same job twice.
  4. Remove them on an unpublished copy of the theme, never the live one.
  5. Measure load time and how fast a tap on add to cart responds, before and after, on a phone.

Why the number of apps is the wrong question

You’ll find plenty of advice that names a safe number of apps. Vendor blogs disagree on what that number is, and none of them is measuring your store. Two apps can cost almost nothing if they only load where they’re used. One app can cost a lot if it loads a large script on every page and listens to every tap.

What matters is what each page loads and runs. That is also what you can measure.

Step 1: List what each page loads

Open the store in Chrome on a computer, open DevTools, and switch to a phone-sized screen with the device toolbar. In the Network panel, filter to JS, reload, and you have every script the page asked for. Sort by Domain: scripts from your store’s own cdn.shopify.com theme files are the theme’s; the rest are mostly apps and tags. Do this on a home page, a collection and a product, because apps often load different things on each.

Then run PageSpeed Insights on the same pages. Its Lighthouse report has a Reduce the impact of third-party code section that groups scripts by company and shows how long each one kept the main thread busy (Chrome for Developers). That is a quick way to see which apps are heavy, not just numerous.

Write it down as a table: script, where it comes from, size, which pages load it.

Step 2: Match every script to something you use

Most scripts are easy to place: the domain or file name gives the app away. For the rest, look in three places:

  • App embeds. In the theme editor, the App embeds panel lists the apps switched on for the whole theme. Apps built as theme app extensions add their code this way and “don’t edit theme code” (Shopify), so switching the embed off removes them from that theme.
  • theme.liquid and snippets. Older apps, and developers working for you, pasted script tags straight into the theme. Search the theme code for <script and for app names. Snippet files named after an app you no longer use are a strong hint.
  • Tag managers and pixels. One Google Tag Manager script can load a dozen more. Open the container and list what it fires.

Anything still unmatched after that is either the theme or something nobody remembers adding. Both are worth a closer look.

Step 3: Find what does nothing on the page

Now sort the list into three piles.

Scripts that run where they’re not needed. A reviews script on a page with no reviews. A size-chart app on the home page. A wishlist on the cart. Chrome’s Coverage panel shows how much of each script file actually ran on the page you loaded, which makes this obvious.

Code left behind. Uninstalling an app doesn’t always remove what it pasted into the theme. A script tag pointing at an app you cancelled still loads, or fails, on every page.

Two things doing one job. This is the costly one. On one store we worked on, a single tap on add to cart built two carts: the theme’s own cart drawer, hidden, and then a cart app’s drawer on top of it. Both ran their scripts on every tap. Shoppers saw one cart and waited for two. The same happens with two review apps, two upsell apps, or a theme feature and an app that replaced it.

Step 4: Test the cuts on a copy of the theme

Never test on the live theme. Duplicate it, leave the copy unpublished, and work there.

Before editing anything, you can preview the effect of removing a script in DevTools: right-click it in the Network panel and choose Block request (Chrome for Developers), then reload. If the page still works and gets faster, that script is a good cut. If something breaks, you’ve learned what it was for.

Then make the cuts for real on the copy: switch off app embeds there, remove leftover script tags, and load scripts only on the templates that use them. Walk the store’s main path on the copy: a product, add to cart, the cart, checkout. Check the things the apps were for still work, such as reviews showing, the upsell appearing or the email pop-up opening.

Talk to whoever runs your ads before you remove a tracking tag. A pixel nobody looks at is a free cut. A pixel the ad account optimises on is not.

Step 5: Measure what shoppers feel

Count the scripts before and after, but don’t stop there. The two numbers shoppers feel are how fast the main content shows up and how fast a tap does something. Google’s names for them are Largest Contentful Paint and Interaction to Next Paint. Apps hurt the second one most, because every script listening to a tap makes it wait.

To see it, record a tap on add to cart in DevTools’ Performance panel with the CPU slowed down, and look at what runs between the tap and the cart opening. Do it on the live theme and on the copy, with the same settings.

Then check on a real phone, and inside the apps your ads open in. In one apparel brand’s real visits, the slowest pages took 5.6 s to show their main content inside Instagram against 4.1 s in Safari; here’s how to test inside them.

What usually goes, and what stays

Every store is different, but the same kinds of script come up again and again.

Usually safe to cut, once checked on the copy:

  • Code from apps you’ve uninstalled or stopped paying for.
  • Scripts for a feature that isn’t on the page: reviews, size charts or wishlists loaded everywhere.
  • The second of two things doing one job, once you’ve chosen which one stays.
  • Old tracking tags nobody reads, after asking whoever runs the ads.

Keep, and make lighter instead:

  • Anything checkout or payment depends on.
  • The tracking your ads optimise on.
  • Apps that sell, such as reviews on product pages or the cart’s upsell. Load them only on the templates that use them, and after the main content.

If an app’s script is heavy and you can’t drop the app, ask its developer whether it can load later or only on certain pages. Some apps have a setting for it.

Before a sale

Don’t do this the week before Black Friday. Cutting scripts is safe on a copy with time to test it; it isn’t safe during a code freeze. If your sale is close, here’s what to fix before the freeze, and what to leave alone.

If you’d like us to look first, our free speed check times your home page, a collection and a product on a phone, in Safari and inside Instagram, Facebook and TikTok, and names the heaviest apps and scripts. No access to your store needed.

Questions

How many apps is too many on Shopify?

There isn’t a safe number. What slows a store is what each app loads and runs on each page. A few heavy apps loading on every page cost more than many light ones that load only where they’re used.

Does uninstalling a Shopify app remove its code?

Not always. Apps built as theme app extensions add code through app blocks and embeds rather than editing the theme. Older apps often pasted code into theme files, and that can stay after you uninstall. Search the theme for script tags and snippets named after the app.

How do I see which apps slow my Shopify store?

Run PageSpeed Insights and read the third-party code section, which groups scripts by company with the time each one kept the browser busy. Then list scripts per page in Chrome DevTools’ Network panel and match each to an app.

Is it safe to remove app scripts from my theme?

Do it on an unpublished copy of the theme and test the store’s main path there first. Block a script in DevTools before deleting anything to see what it does. Check with whoever runs your ads before removing a tracking tag.

Why does add to cart feel slow on my store?

Usually because several scripts react to the same tap: the theme’s cart, a cart app, upsells, tracking. Record the tap in Chrome DevTools’ Performance panel to see everything that runs before the cart opens.

Contact

Get your store timed.

Shopify stores made fast on the phones your shoppers use, with every fix measured before and after.

Rather email? keshav@speed-shop.co

and our ads run on

Add details (optional)

Press ⌘/Ctrl + Enter to send.

We use what you send only to reply. How we handle your details

You’re on the grid.

We’ll time your key pages on a phone and email the speed check from keshav@speed-shop.co within 3 working days.