Remove Amazon Web Service Javascript from Shopify Store

Topic summary

Google PageSpeed Insights flags unused JavaScript on a Shopify site, showing Amazon Web Services (AWS) resources; the store owner doesn’t recall adding AWS and asks how to remove it. A screenshot (PageSpeed report highlighting AWS JS) is referenced.

Key guidance: AWS scripts are likely loaded by a Shopify app (AWS is a common backend/service provider). Before changes, back up the theme. Then:

  • Check theme.liquid (and relevant templates like product pages) for matching script references and remove only if confirmed unnecessary.
  • If not found, an app may inject the script at runtime; investigate code hints to identify the app (e.g., a filename like “mc-validate” may point to an app with matching initials) and avoid deleting if the app needs it.
  • If source remains unclear, engage a Shopify developer.

Notes: PageSpeed Insights is Google’s performance tool; theme.liquid is Shopify’s main layout file. Status: Unresolved; action items are investigation and possibly developer assistance.

Summarized with AI on January 13. AI used: gpt-5.

I was checking our Shopify page speed via PageSpeed Insights and it says to reduce unused javascript. The first suggestion is Amazon Web Services. I don’t think we’ve ever connected this account or have it on our Shopify store. Does anyone know how to remove the javascript for it? Here is a picture of the problem:

That’s likely one of your apps using that service (Amazon Web Services is a common technology solution).

Here’s how I would track that down:

  1. Look in your theme.liquid file in your theme editor (or if this is only happening on a specific page template, like product page, look at the product template as well).

  2. See if you can find a file resembling what you see there. Remove it, make sure everything works (of course you already backed up your theme before editing it :D)

  3. If that doesn’t yield any results, it’s possible an app is injecting the script on page load. In that case it’s likely being used and should not be deleted, but you could also try to investigate the code to see if you can figure out what app is using it. For example, “mc-validate” maybe is for an app with the initials M C.

If you aren’t able to track down the source of the problem, a Shopify developer should be able to do that for you.