Mini Build Script For Dojo Toolkit 1.2.3

When you use a JavaScript framework, library or toolkit in production, you would be interested in improving the performance of the application by:

  • Reducing the footprint of the JavaScript code by compressing it, removing comments, white spaces, etc
  • Reducing the number of HTTP requests, especially in Ajax applications
  • Removing documentation, tests and other project files to be productive with FTP, SCP and VCS operations

Dojo has its own solution to solve these concerns. If you download a source version of the Dojo Toolkit, you will see the shell script in the util directory. The script helps you build the layers and reduce code footprint. Build custom layers using the build scripts and you will see significant improvements in performance of our application. In one of my applications, I was able to reduce the number of HTTP requests from 39 to 9 on a single web page. This boosted the loading speed drastically.

Peter Higgins who is the project lead of Dojo Toolkit has created the shell script to further improve the build process. You get a really tiny build when you use The script was available for Dojo release 1.1.0 in the form of at Due to the success and popularity of that script, it will be incorporated into the next Dojo 1.2 release. It is also available in the Dojo subversion trunk at the time of this blog post. Peter has also created screencasts of using this process at You might also want to check out Peter's blog post where he explains the process of creating tiny builds at

Recently, I had to run a mini build on the Dojo 1.2.3 release. I modified the Higgin's to suit to my needs. Other people also encounter this situation on a day to day basis. I sent the modified and the README.html file to Peter. He gladly accepted them and uploaded to Download the script, build Dojo and enjoy.

Taxonomy upgrade extras: