All things Shopify and commerce
I'm getting some errors in the Google page speed insights asking me to resolve javascript modification problems. I have no experience to do that on shopify websites and how to resolve them. Moreover, my website is slow so I need some tips and solutions for minification.
If you shop around this is usually starting at 1800€ or more to optimize site speed and typically there is a one month timeline. Your shopify theme has a lot of sections and each section requires javascript. The javascript code for all these sections resides in one file whether you use them or not.
this usually leads to enormous javascript files and also its usually ran through a bundler like webpack so it‘s not easy to read. If you are serious about your site it‘s usually a good idea to get rid of the main javascript file because it contains a ton of code you probably won‘t use.
if you create a headless site, there is a build step and all your code is minified with each deploy. If you want to do it on your own you will need to setup a local project with webpack and minify the css and javascript files. Those files would need to be minified with a build command then pushed up to shopify or github.
This is a situation that takes careful work because the standard main js file has importa that depend on each other so just deleting code will break your site
@qazianasm3 Hey To fix JavaScript issues on your Shopify site, consider using an app like 'Speed Booster' for automatic minification. If you're not experienced, hiring a developer to manually optimize the code is a good idea. Also, reduce the number of apps and large images to improve overall site speed.
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