Hidden code in theme.liquid on Prestige 8.2?

I’m brand new to coding. I’m trying to improve page speed by removing some unused javascript and deferring off screen images via lazy loading. The problem I’m running into is the code that Google’s PageSpeed Insights is telling me to alter isn’t in the theme.liquid file.

When I inspect my page on my browser I can see all the code that needs to be changed but it’s simply not in the coding part of my theme.

Has anyone run into anything similar with the Prestige theme and/or how can I solve this?

Thanks in advance

I would recommend downloading your theme to a local computer and then using a text editor to do a text search for the script.

See https://shopify.dev/docs/themes/tools/cli for tools that can do this. If it is not in your theme it may be being injected/inserted by external JavaScripts, there may not be a lot you can do about that.

1 Like