Tuesday, October 14th, 2008

Dojo 1.2: Squeezing it into 5.5kb

Category: Dojo

James Burke gave a great presentation in Boston on the Dojo build system, and how he is able to get the core down to 5.5k.

With Dojo 1.2, the build system can generate a 5.5KB gzipped (13KB ungzipped) dojo.js file, via the customBase layer option. Useful for iPhone development if you want to get under the 25KB uncompressed size limits for the Mobile Safari cache. That small dojo.js is basically just the loader and some bootstrap functions, but it allows you then to tune your build layers to meet the 25KB and dynamically load what you need as you go.

Also, the djConfig options afterOnLoad/require/addOnLoad allows loading Dojo after the page is loaded. Great for making progressively enhanced pages render even faster.

Posted by Dion Almaer at 6:17 am
Comment here

3.9 rating from 31 votes

Comments Here »

Comments feed TrackBack URI

Leave a comment

You must be logged in to post a comment.