this is the personal blog of brandon quintana.

| | | | | |

Dojo The Browser Toolkit

May 24th, 2006

When writing scripts, I didn’t think white space would affect my code so much. A space is still considered a character though and it does take up file space. By using the Java tool Dojo to compress JavaScript files, removing white space reduces a 321B file down to 140B. While this might not seem like that much with broadband connections out, it makes a difference.

All the files added up within your web application could mean a large file size for your client. Now with Web 2.0 building up, the code relies heavily on JavaScript and all this code must be pushed to the user before they can use the application.

There are applications that you can use to couple this with your development environment. It would be similar to compiling your application even though there usually isn?t any compilation on the developer side in PHP, JavaScript, HTML, CSS, etc. This tool may be of use to you, so give it a try and see if your applications run faster.

© 2004 - 2012 brandon quintana. all rights reserved.