Why You Should Compress Your Javascript
Jun1
Do you write a lot of jQuery, MooTools, Prototype, Dojo (all types of JavaScript) code?
If you do then you should also be compressing (or minify) that code on all your live websites. And not just the large scripts either…
You should Minify every Javascript script that is going to be loaded by any of your webpages, especially the ones that are highly trafficked. Even is the Javascript file is only 2KB in size, you should still compress it! This may sound anal and sure this is a pain in the ass to do, but in the long run your wallet, uptime, servers and clients will all thank you.
Why go to all the trouble of compressing Javascript?
Well first of all it’s easy to compress javascript and even CSS code, plus there are tons of options out there – to make your life easier here is our list of the Top 10 Free Javascript Compressors on the web. All compressors listed in the latter hyperlink make it a snap to compress code on-demand 24/7.
Reasons to Compress Javascript:
- Reduced data load and server processing load when browsers request pages (due to smaller file sizes.)
- Obfuscation (or encoding) of potentially sensitive script logic and algorithms which although can be reverse engineered at least makes it harder for people to rip off your code.
- $$ Money savings can be significant especially when talking about sites that get large volumes in traffic and also have many web 2.0 components.
- Most-importantly you can increase website load time up to 80%!
Related Blogs
- Related Blogs on Javascript
- 10 Things To Know About JSON. JSON Javascript Examples | tech …
- Related Blogs on Minify
- on Code » New Kohana Module: Minify
- Craig Andrews » Compression (deflate) and HTML, CSS, JS …
- Related Blogs on Website Optimization
- Website Optimization: Compression Is Key | Internet Marketing Online
- Toms Home Business Blog » Blog Archive » What is Search Engine …