Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

There are scripts to compress CSS on-demand like these.

Have you stumbled upon something similar for javascripts? Also, any recommendations regarding CSS and JS compression are more than welcome. What methods do you use, if any?

share|improve this question
add comment

3 Answers

up vote 2 down vote accepted

The most used CSS compressor is YUI Compressor. It supports both JS and CSS.

Talking about JS, Google Closure offers a more powerful set of features compared to YUI Compressor.

share|improve this answer
add comment

Have you tried to use gzip compression. This will bring you much more benefits than the standard compression. Also have in mind that compressing some JS files may bring you troubles. Last year I used internet by broadband connection(GSM network) where the provider`s proxy compressed all the content to lower the bandwidth and this causes me troubles with some sites so test everything you compressed.

Please post and update what optimisation method you choose and what was the benefit.

share|improve this answer
    
+1, gzip should ALWAYS be the first step; minifying will only save a few bytes. –  DisgruntledGoat Dec 3 '10 at 11:18
add comment

Yahoo has one, so does Microsoft.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.