Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

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

Yahoo has one, so does Microsoft.

share|improve this answer

Your Answer


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.