Any one know how can I apply Yahoo Compressor (YUI compressor) on my website?
Here is the README on the YUI Compressor. And here is the How To use from their site.
You need to use the YUI compressor to compress your .js and .css files before putting them on the server. Since the compressor is written in Java, you need to run the java file for compression. This is copied from YUI web:
Using the YUI Compressor from the command line
$ java -jar yuicompressor-x.y.z.jar
Usage: java -jar yuicompressor-x.y.z.jar [options] [input file]
The following command line (x.y.z represents the version number):
java -jar yuicompressor-x.y.z.jar myfile.js -o myfile-min.js
will minify the file myfile.js and output the file myfile-min.js. For more information on how to use the YUI Compressor, please refer to the documentation included in the archive.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With