So ...

There are two common ways: installing a plugin or using a free third-party service ...

Let's start with a plugin-free solution. There are dozens of free, easy-to-use solutions out there ... My favorite is MinifyCode:

http://minifycode.com/

All you have to do is to select the desired tab (Javascript, CSS, HTML), to paste your code into the input field and to hit the "Minify" button:


It's a simple and efficient method ... which comes with a big disadvantage: you'll have to copy the HTML source code of every single page/post to minify it online, and then, you'll have to replace the original code with the minified version. Needless to say, there's a lot of room for errors and it can be really time-consuming ...

So let's see an easier and safer plugin-based solution ...



Join the Discussion
Write something…
Recent messages
juanster2017 Premium
Thanks for the step by step training it is very helpful
Reply
smartketeer Premium
Thanks for the time and the feedback Juan!
Reply
BorisRoman Premium Plus
Thanks a lot, Zsolt!
Reply
smartketeer Premium
Thank YOU!
Reply
Jenny28 Premium
Wow, thank you for this! When it comes to site speed, I am always trying to improve. This will help me out for sure, thanks for the training.
Reply
smartketeer Premium
Thank YOU!
Reply
ShihTzuSteve Premium
Thanks for sharing this great tip and for showing us how to implement it.
Reply
smartketeer Premium
Once again, thanks for the time Steve!
Reply
CandP Premium
Thanks, Zed. We are really working on our page speed at the moment. Right now we are optimizing images but when we have finished this we were going to look closely at a minify program. This plugin looks nice and simple but it's still messing with code and that makes us nervous. Should we do a complete backup of our entire website before activating the plugin?
Colette and Philip
Reply
smartketeer Premium
ALWAYS! That's a general rule. Why? Because literally speaking, any new plugin, changed option, etc is "messing with your code" ...
Reply
CandP Premium
So the changes are made to the entire website as you activate and there is no going back, right?
Reply
smartketeer Premium
No.

What I was trying to say: any new plugin/widget/setting/etc will alter your Wordpress database and/or your theme template files to add/modify a given function/feature.

And when you deactivate/uninstall the plugin, those changes will be removed automatically.

However, many things can go wrong (plugin conflicts, untested plugins, theme compatibility issues, etc) so is always better to create a full site backup before installing new things ...
Reply
CandP Premium
Thanks for clarifying that. We will definitely do the backup. Thanks again, Zed.
Colette and Philip
Reply
smartketeer Premium
Thank YOU!
Reply
Top