Making JavaScript codes is difficult and long. In Web projects, we try our maximum to minify JavaScript and CSS to serve content better. There are many sites on the Web that helps to compress/minify JS code. There is even a PHP Software to do this. In this post, I’ll tell you how to use the PHP jSqueeze library to minify JavaScript code.
Setting Up
You can get the class code of JSqueeze from here. Paste the code into a file called “min-js.php”. We will include this file to compress our code.