Massively looks at the best free to play games

Making smaller, crunchier scripts

If you're concerned about the bandwidth used by a complex script, you may want to consider using the JavaScript Crunchinator at BrainJar.com. This is a tool that removes extraneous white space, comments, and string breaks from your code, creating something less readable but less bulky. You can try it on your code using the online demo. (It's also written in JavaScript, so view the source to see how it works.)

I don't normally recommend using things like this—readable, maintainable code is worth some extra bandwidth—but if you're serving a complex script on a very busy site, it could make a big difference in bandwidth. That's probably why Google Suggest uses a similar technique.


Reader Comments

(Page 1)

RESOURCES

RSS NEWSFEEDS

Powered by Blogsmith

Other Weblogs Inc. Network blogs you might be interested in: