We love to play with the plumbing don’t we. jscsscomp is the latest compressor that uses Nicolas Martin PHP version of the Dean Edwards JavaScript Compressor.

With a swish of mod_rewrite:

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*\.)(js|css)$ jscsscomp/jscsscomp.php?q=$1$2 [L,NC]

you can get your JavaScript like this:

HTML:

  1.  
  2. <script src = “/jscsscomp/yahoo.js, dom.js, event.js, effects/dragdrop.js, slider.js”></script>
  3.  

Source: Ajaxian
Original Article: http://ajaxian.com/archives/jscsscomp-javascript-and-css-files-compressor

Leave a Reply

You must be logged in to post a comment.



Site Navigation