Search code examples
apache.htaccesswindows-server

How to enable jQuery, javascript, CSS files compression


It is my first time I want to enable jQuery, Javascript and CSS files compression

but I don't exactly know where to start I searched the net but there was not a detailed example that I could implement that in my project. Please Help me that how can I enable jQuery, Javascript and CSS files compressions?

1-In windows servers?

2-In Appache Servers?

also can I enable it through .htaccess files?


Solution

  • You can use the following:

    http://www.jsmini.com/

    Google released Closure Compiler which seems to be generating the smallest files: https://code.google.com/p/closure-compiler/

    or http://yuilibrary.com/download/#yuicompressor