November 20, 2007
3:32 pm

We often talk about the compressing and minimizing JavaScript files. The JavaScript Beautify script aims to do the opposite. Most of the time, you find a site that is doing something interesting and you want to learn how it works. You check out the source and it is cryptic gibberish. This is where the beautifier comes in to make it a touch more readable.

For example, it can take:

[javascript] /* paste in your own code and press Beautify button */var latest_changes=new Object({’2007-10-17′:’Many, many fixes and improvements.[/javascript]

and gives you:

[javascript] /* paste in your own code and press Beautify button */ var latest_changes = new Object({ ‘2007-10-17′: ‘Many, many fixes and improvements. Processing speed is also back.’, ‘… who cares …’, ‘2007-02-08′: ‘Initial release’ }); var a = b ? (c % d) : e[f]; [/javascript] JavaScript, Utility

Related Posts:

No followup yet

Leave a Response

Comment Preview
« YSlow and High Performance Web SitesCacheFile.net “Central JavaScript Library URLs” »
Feed Icon

Subscribe via RSS or email: