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

I have the same problem. Rosylana.com. Thanks!

Google says remove unused javascript, what can I do about it?

…rs=AGLTcCNzu…/cb=gapi.loaded_0
(apis.google.com)

103.4 KB

77.5 KB

…assets/ssw-libraries.js?v=1083165…
(cdn.shopify.com)

75.5 KB

66.4 KB

/shopify_v2.js
(cdn.judge.me)

87.1 KB

52.1 KB

/assets/ddr_embed.js?ddr_token=…
(d22ahnxn75jhdh.cloudfront.net)

68.5 KB

37.5 KB

…assets/vendor.js?v=1218573…
(cdn.shopify.com)

47.9 KB

29.4 KB

…assets/ets_instagram_shopping_slider_required.js?v=134…
(cdn.shopify.com)

32.3 KB

27.3 KB

/ellipsis.js?api_key=…
(script.metricode.com)

39 KB

23 KB

…assets/jquery.3.4.0.ets.js?v=1573982…
(cdn.shopify.com)

31 KB

19.5 KB

/5eef830….js
(cdn.getshogun.com)

42.7 KB

18.1 KB

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

25.3 KB

18.1 KB

/scripts/socialshopwave_l_s_159….js?shop=rosy-lana.myshopify.com
(img0.socialshopwave.com)

21.7 KB

17.4 KB

…assets/ets_instagram_shopping_slider.js?v=1408172…
(cdn.shopify.com)

16.1 KB

15.5 KB

/v1/app.min.js?v=1&shop=rosy-lana.myshopify.com
(buy-me-cdn.makeprosimp.com)

16.9 KB

14.9 KB

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

33 KB

14.2 KB

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

31.4 KB

12.5 KB

…assets/ssw-app.js?v=1810804…
(cdn.shopify.com)

14.1 KB

9.7 KB

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

13.8 KB

7.7 KB

/collector.js?shop=rosy-lana.myshopify.com
(analytics.getshogun.com)

16.9 KB

7.6 KB

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

18.7 KB

5.8 KB

/tag.js
(deluxe.onetag.io)

12.5 KB

5.6 KB

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

12.7 KB

5 KB

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

8.6 KB

3.7 KB

/get_script/b567a22….js?shop=rosy-lana.myshopify.com
(quanter-cqu.herokuapp.com)

4.2 KB

2.7 KB

…2.0.0/shogun-lazysizes.js
(lib.getshogun.com)

4.8 KB

2.3 KB

/ellipsis-vital-forms.js?shop=rosy-lana.myshopify.com
(vital-forms.c1.humanpresence.app)