How can I remove unused code after uninstalling apps?

Topic summary

Core Issue:
Shopify store owners struggle with leftover code from uninstalled apps that slows page speed. No automated app exists to clean this code.

Key Findings & Solutions:

  • Shopify’s New Requirements: As of ~2 months ago, Shopify requires apps to provide automatic code removal upon uninstallation. Users should reinstall apps briefly to check for cleanup buttons.

  • Diagnostic Approach: Use Chrome DevTools (right-click → Inspect → Network tab) to identify slow-loading resources and trace them to specific apps or theme files.

  • Common Culprits:

    • Facebook Pixel requests (often duplicated, sometimes 3+ instances)
    • Review apps (Ali Reviews, Judge.me, Yotpo, Opinew)
    • Loyalty/rewards programs
    • Chat widgets and email marketing tools
    • Unused CSS/JavaScript from themes
  • Recommended Actions:

    1. Contact app developers for optimization help
    2. Add loading="lazy" to image tags for lazy loading
    3. Search theme files for app references using text editors
    4. Consolidate duplicate pixels/tracking codes
    5. Remove unused apps completely following developer uninstall guides

Important Caveats:

  • Some JavaScript loads after main page (via Shopify script tags), so doesn’t actually slow initial load despite Google reports
  • Theme core files shouldn’t be modified without expertise
  • Google Lighthouse scores simulate slow connections and may not reflect real user experience
  • Professional developer help recommended for complex code removal
Summarized with AI on October 31. AI used: claude-sonnet-4-5-20250929.

Hi @xixLabs ,

Yep, sure. Your images seem to all be well optimised etc, which is super important for a store with so many SKUs like yourselves.

The biggest request is from your theme (I think), followed by Facebook.
However, after that it’s followed by a chat app, that you could remove if you’re not using.

Apart from that, it’s a lot of small requests, a lot coming from Google tag manager, Analytics and AWS.

…assets/smk-sections.js?v=199…
(cdn.shopify.com)

142 KB

115.5 KB

…config/295…?v=2.9.24&r=stable
(connect.facebook.net)

132.4 KB

113.9 KB

/5ea09c3…/default
(embed.tawk.to)

222.6 KB

106 KB

…meatandco/159….js?shop=meatandco.myshopify.com
(cdn.secomapp.com)

64.8 KB

55.6 KB

/pixel.js?id=5260282efb932&shop=meatandco.myshopify.com
(cdn.popt.in)

60.6 KB

52.6 KB

…3.3.1/jquery.min.js
(cdnjs.cloudflare.com)

58.4 KB

39.8 KB

…assets/theme.min.js?v=293…
(cdn.shopify.com)

54.5 KB

39.3 KB

…assets/sca-pp-initial.js?v=232…
(cdn.shopify.com)

64.3 KB

39 KB

/gtm.js?id=GTM-NTDZLXS
(www.googletagmanager.com)

51.4 KB

37.3 KB

…2.2.4/jquery.min.js
(ajax.googleapis.com)

59.1 KB

36 KB

…1.11.1/jquery.min.js
(ajax.googleapis.com)

65.4 KB

34.2 KB

…2/loader.js?t=2020828
(sdk.loyaltylion.net)

52 KB

33.5 KB

/en_US/fbevents.js
(connect.facebook.net)

67.4 KB

31.4 KB

…js/bamboo.beans.js?shop=meatandco.myshopify.com
(trybeans.s3.amazonaws.com)

29.7 KB

26.2 KB

/gtag/js?id=AW-981…
(www.googletagmanager.com)

36.1 KB

24 KB

…boomerang/shopify-boomerang-1.0.0.min.js
(cdn.shopify.com)

61.2 KB

23.1 KB

…assets/libs.min.js?v=1410958…
(cdn.shopify.com)

43.7 KB

20.1 KB

/inShop/forms.js?v=2020-09-28T14
(omnisrc.com)

26.2 KB

17.4 KB

/widget/22837_158….js?v=5&shop=meatandco.myshopify.com
(app.backinstock.org)

31.7 KB

15.5 KB

…storefront/features-87e8399….js
(cdn.shopify.com)

25.5 KB

14.3 KB

…shopify_pay/storefront-21b5ddd….js?v=20190107
(cdn.shopify.com)

22.2 KB

14.1 KB

…tricorder/trekkie.storefront.min.js?v=2020.07.13.1
(cdn.shopify.com)

30.7 KB

12.4 KB

/inShop/push-notifications.js?v=2020-09-28T14
(omnisrc.com)

13.3 KB

8 KB

/analytics.js
(www.google-analytics.com)

18.6 KB

7.7 KB

…assets/flits-wishlist.js?v=182…
(cdn.shopify.com)

8.7 KB

6.9 KB

/inshop/launcher.js?v=2020-09-28T14
(omnisrc.com)

14.1 KB

6.7 KB

…v1/messages.js?app_id=…
(sdks.automizely.com)

12 KB

6.7 KB

…v1/5.fc159625.js
(sdks.automizely.com)

12.5 KB

6.1 KB

/shopify/layouthub.js?shop=meatandco.myshopify.com
(app.layouthub.com)

9.3 KB

5.8 KB

/facebook-chat//facebook-chat.js?v=…
(apps.omegatheme.com)

6.9 KB

5.7 KB

…external/app.js
(cdn.shopify.com)

5.7 KB

4.8 KB

/pagead/conversion_async.js
(www.googleadservices.com)

11.9 KB

4 KB

…v5/tp.widget.bootstrap.min.js
(widget.trustpilot.com)

6.8 KB

3.7 KB

…assets/flits-refer-friend.js?v=872…
(cdn.shopify.com)

4.4 KB

3.3 KB

/limits/meatandco.myshopify.com?v=…
(shopifyorderlimits.s3.amazonaws.com)

8.8 KB

3 KB

/tp.min.js
(invitejs.trustpilot.com)

4 KB

2.5 KB

…storefront/load_feature-ff2cf72….js
(cdn.shopify.com)

6.7 KB

2.5 KB

…assets/lazysizes.min.js?v=384…
(cdn.shopify.com)

Cheers,

Oli

——————————

Founder [email removed] www.preproduct.io

Test and make sales for future products