Getting the Code

Note: The Dojo Quick Start Guide posts – while still relevant – are a bit dated. Please visit for expert tutorials and API documentation to help you get up and running with Dojo.

Download the newest released version of the Dojo Toolkit. Or find a previous release if necessary.

The optimized “built” version is:, where x, y, and z are major, minor, and point release numbers, respectively. Or to run the complete suite of tests, you should download the SDK or -src version of Dojo.

Unpack the contents of the archive into a folder (preferably on a web server as this is always a good case for Ajax development). Let’s call it “js/”. You may also name your dojo directory “dojotoolkit” as the examples here will show. If you wish to version Dojo, you may leave it as dojo-release-x.y.z. You should now have a directory structure similar to this:

Dojo Source tree view

The most important thing to know when installing the Dojo Toolkit is where your copy of dojo.js is located. The package system handles the loading of all other dependencies and modules, once dojo.js has been loaded into the page.

You can verify your download and install is working by pointing your web browser to http://localhost/js/dojotoolkit/dojo/tests/runTests.html or browse the Dijit test pages at http://localhost/js/dojotoolkit/dijit/tests/

The Dojo Reference Guide, a freely available collection of guides and tutorials, provides a more in-depth description of the various ways to get the Dojo source and about the different releases available.

Series Navigation« Why Dojo?First Steps »

Learn more about how SitePen can be your partner

SitePen is a strategic consultancy committed to achieving technical objectives, solving critical business problems and helping our customers build web applications the right way, the first time.