4 ms·
7 Free Tools to Minify your Scripts and CSS
- zalew 16y agoFor the Django dudes in here: http://github.com/miracle2k/django-assets http://github.com/miracle2k/django-assets with which you can use your compressor of choice http://elsdoerfer.name/docs/django-assets/ http://elsdoerfer.name/docs/django-assets/
- bigstorm 16y agoFor Dojo as mentioned on the post comment http://dojotoolkit.org/docs/shrinksafe http://dojotoolkit.org/docs/shrinksafe
- buro9 16y agoAnd they've missed the Google Closure Optimizer for JavaScript: http://code.google.com/closure/ http://code.google.com/closure/
- ErrantX 16y agoIf anyone uses Kohana I maintain a packaged which wraps the PHP cssmin and jsmin libraries (plus some Kohana juice for serving files/caching) http://hg.errant.me.uk/minify http://hg.errant.me.uk/minify There is also a port (or rewrite) for Kohana V3 that someone else maintains http://github.com/zazu/minify http://github.com/zazu/minify
- pmjordan 16y agoI'm not sure why YUI Compressor is last on that list, and why it's not mentioned that it also minifies CSS.
- ojbyrne 16y agoLast could be a position of honor. And he mentions that it produces higher compression ratios.
- statenjason 16y agoTwo months ago I hooked up jsmin from a build script for release configurations. It's been helpful to have all of the reader-friendly stuff stripped out automatically without having to store minified copies in source control.
- ojbyrne 16y agoThat's obviously a best practice. Minified code is essentially object code.
- mike-cardwell 16y agoI wrote a couple of articles a while ago about minifying css/javascript on the fly. They utilise a mod_perl handler which intercepts outgoing css/js and compresses them on the way out. https://secure.grepular.com/Compressing_CSS_on_the_Fly https://secure.grepular.com/Compressing_CSS_on_the_Fly https://secure.grepular.com/Compressing_JavaScript_on_the_Fly https://secure.grepular.com/Compressing_JavaScript_on_the_Fl...
- frankosaurus 16y agoFor .NET websites, Combres does minifying, compression, and combining of scripts: http://combres.codeplex.com/ http://combres.codeplex.com/