Click Fraud Protection
PHP related blog, freelancer to hire!

Online CSS and JS compressor – save your visitor time

Today I needed to reduce size of CSS and JS which was almost 400Kb all together. Spending some time found usefull tools for it.

http://iceyboard.no-ip.org/projects/css_compressor and http://dojotoolkit.org/docs/shrinksafe are winners

Before compressing javascript file make sure that You don’t have anything compressed already there, all lines are ending with semicolon and all code is valid.

After compression I saved 80Kb.

Finally we have changed CDN from amazon S3 to cachefly, and it is much quicker and they support gzip on-fly

Leave a Reply