
SHOPIFY MINIFY JS HOW TO
How to determine if your store has these issues:įirst, re-run the optimization in 1-2 hours, usually Shopify/Google will fix any server issues pretty fast, otherwise they notify that there is an issue on their side. For example, we’ve seen a lot of issues with GetResponse, sometimes it takes up to 15-secs to load, which will push your store’s score into the red zone. which take time to load, and all of them are influencing your score.

One of the optimization recommendations is not to have CSS/JS files at the beginning of the HTML file, because it blocks rendering (you do not see the page until it completely loaded). Google scores your site for each of the optimization options, for not obeying the recommendations Google takes off the points. So, if you get issues, please revert your theme from the backup, turn off the concatenation options in the preferences and run the app again.Ģ) Your Google PageSpeed Insights score may go down – this does not mean that your website has become slower.
SHOPIFY MINIFY JS CODE
So we concatenate the CSS and javascript files into one CSS and one javascript file – decreasing the number of server requests which makes the website load faster.ġ) This is pretty risky functionality which may break your CSS or javascript if the code doesn’t follow best practice. The concatenation works like this each file which is specified in the code (image, javascript or CSS) creates an extra server request which slows your site down. This occurs where they are specified in the theme files instead of separate javascript or CSS files (inline styles are not good practice).

But ideally your store’s code should be clean, other third-party apps or customizations are usually the cause of bad code.Īlso, we can’t minify inline javascript or CSS. However, your store may have some files which cannot be minified due to the code structure, in this case, SpeedBoost Ninja skips those files. Our app minifies the liquid files to improve your store’s page-load speed. And that’s where SpeedBoost Ninja comes in. This is because Shopify does not minify the liquid files which contain the theme settings. Shopify does some minification natively, but it still leaves opportunities to improve the page-load speed. As well as optimizing the images, we minimize and concatenate the Javascript and CSS files.
