Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
How do I remove unused Javascript from our site - it is slowing it down on mobile (circa 50).
Desktop is circa 97 when I run a Lighthouse check.
Facebook and You tube are the main culprits.
Thanks for any help.
Hello @SeanDS
This is Gina from flareAI app helping Shopify merchants get $6Million+ in sales from Google Search, on autopilot.
You will need to identify which scripts are causing the slowdowns. You can follow these tips to find them.
1. Use a tool to analyze your site's performance, such as Google's Lighthouse, to identify which scripts are causing the slowdowns.
2. Review your theme's code and identify which scripts are necessary for your site's functionality.
3. Review your theme's code to determine which scripts are necessary for your site's functionality and remove any that are unnecessary.
4. Minimize the size of your scripts by removing any unnecessary code, such as comments or whitespace.
5. Use asynchronous loading for scripts that are not necessary for the initial page load.
6. Optimize your images and videos to reduce their size and improve page load times.
7. Consider implementing lazy loading for images and videos to defer their loading until they are needed.
8. Test your site's performance after making these changes to ensure that the script removal has improved your site's speed and performance.
By following these steps, you should be able to identify and remove any unnecessary JavaScript from your Shopify site, which should help to improve its loading speed on mobile and desktop devices.
Gina
Hello @SeanDS
In your store, if there is heavy JavaScript calling. so you need to work on it if you are having coding knowledge.
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025