Blog / Product pages

Shopify theme speed audit: cutting script clutter before the holidays

Every uninstalled app leaves orphan JavaScript behind. How to audit your theme, strip dead tracking scripts, and load product pages under 2 seconds.

Speed audit

When a store has been running on Shopify for more than a year, it accumulates digital sediment. Past marketing experiments, uninstalled popup tools, abandoned quiz widgets, and extra tracking pixels continue to execute on every page view. Before peak traffic hits, here is how to find and delete dead code.

The ghost apps slowing your store

When you click "Uninstall" on a Shopify app, Shopify removes the app's server permissions. However, older apps that injected snippets directly into your theme code remain there forever until someone deletes them by hand.

These orphan scripts attempt to fetch assets from servers that may no longer exist. Browsers will spend 200–800 milliseconds waiting for timeouts before continuing to render your product images and checkout buttons. On mobile 4G connections, this can push load times past five seconds.

Auditing theme.liquid and snippets

Open your Shopify Admin, navigate to Online Store > Themes, click Actions > Edit code, and inspect layout/theme.liquid.

Look specifically for:

  • {% include 'app-name' %} or {% render 'app-name' %} tags referencing apps you no longer use.
  • Raw <script src="..."> tags loaded from external domains.
  • Dead tracking pixels (old TikTok, Pinterest, or Google Analytics Universal tags that have been superseded).

If you see a snippet belonging to a deleted app, remove the render line from theme.liquid, then delete the corresponding file under the Snippets folder.

Always duplicate

Always duplicate your live theme before editing theme code. Name the backup "Pre-Audit Backup [Date]" so you can revert with one click if a layout shifts.

Spotting duplicate libraries and fonts

A common cause of sluggish Shopify storefronts is multiple apps loading their own copy of the same heavy utility library. For example, your theme might load jQuery, while a slider app loads jQuery 3.6, and a reviews app loads another variant.

Similarly, check your custom font declarations. Each extra font weight (Regular, Medium, Bold, ExtraBold, Black) adds 50KB to 120KB of blocking download time. Standardize your theme on 2 font families and 2 weights (Regular 400 and Semi-bold 600).

Disabling unneeded App Embeds

Modern Shopify apps use Theme App Extensions (App Embeds) rather than direct theme code injection. This is cleaner, but merchants often leave inactive embeds toggled on.

  1. In the Theme Editor, click the gear/embeds icon on the far left.
  2. Review the list of active App Embeds.
  3. Toggle OFF any embed for apps you are not actively using this week.
  4. Hit Save. The external script will stop injecting across all storefront templates immediately.

Measuring real mobile checkout speeds

Don't rely solely on desktop Google PageSpeed scores, which test from fast datacenter connections. Instead:

  • Open Chrome DevTools, switch to Network, set throttling to Fast 4G, and test your product page on a simulated mobile viewport.
  • Measure time to interactive (TTI) for the "Add to Cart" button. It should be responsive within 1.8 seconds.
  • Check the total number of network requests. A lean Shopify store should hover between 45 and 75 requests, not 200+.
Apps built with zero code bloat

At Tidebird, we build lightweight, single-purpose Shopify tools. No global script injection, no bloated libraries, and instant load times.

Explore Tidebird Apps
TB
Tidebird Team

Founders & builders at Tidebird. We write about product pages, gift offers and Shopify stores.