![minify css magento minify css magento](https://mage2.pro/uploads/default/original/2X/e/ea3d345e3d58ce8bf3176f0fadd1140447ea5273.png)
This approach highly depends on the project and what we can or can’t change on it. For example, good online tools are jscompress or javascript-minifier. There is bunch of online tools and different kind of IDE extensions for minifying JavaScript code. That will minify the code every time when you save the working stylesheet file.
#MINIFY CSS MAGENTO INSTALL#
In that case you can speed things up by using some kind of IDE plugin that you can install or enable. If you are working on a complex project, you’re probably using some kind of IDE software. For example, one of the online minifying tools you can use is cssminifier.
![minify css magento minify css magento](https://fishpig.co.uk/media/i/4eab795eb3e4.png)
If you are a developer who doesn’t use any kind of frontend “wizard” on your project (SASS, LESS, Gulp, Grunt etc.), the best option for you will be to use some kind of online or offline minifying tool. We’ll suggest to do automatically in order to speed up the development process, but if for some reason you want to do it manually, we don’t mind. In order to minify code we first need to decide are we going to do it manually or automatically.
#MINIFY CSS MAGENTO HOW TO#
Let us to suggest few possible options how to minify your code for production. We’ve also seen cases where main theme code is minified but code from some other source (extension etc.) isn’t.īefore we go any further let us just ensure that we are on the same page about what “minified code” means. Partially means that, for example, theme code is minified but there is a lot of inline code which isn’t and it is possible to relocate and minify it. Also, we have seen partially minified code. We have seen different cases where developers completely ignored code minification. Even though this is pretty simple and straight forward method, for some reason, a lot of Magento stores and generally websites, don’t use this benefit. Probably the simplest method of increasing site speed is minifying CSS and JavaScript. We have couple of options on our disposal when it comes to increasing site speed. It is also most likely that you already know how search engines use page speed as one of the parameters for evaluating your site. If you are reading this article, you are probably somehow involved with web development.