Wednesday, November 29th, 2006

Including Dojo via the AOL CDN

Category: Dojo

<p>AOL has been hosting Dojo builds for awhile, but now Alex Russell has:

constructed a couple of very small “wrapper” files that will let you include the “Ajax” build of Dojo from various versions through the cross-domain loader.

Including the latest stable Dojo couldn’t be simpler:

<script src="http://download.dojotoolkit.org/dojo_0.3.1.js"></script>

It’s also trivial to test out the latest 0.4.1 Release Candidate:

<script src="http://download.dojotoolkit.org/dojo_0.4.1rc2.js"></script>

That’s all there is to it!

From here on in, your pages can use the dojo.require() system to pull in anything that’s part of the “stock” distribution, and by following James’ detailed documentation and test page, you can also load your own custom packages while still loading the main system from a separate domain.

Imagine if lots of people did this. Browser cache happy.

Related Content:

2 Comments »

Comments feed TrackBack URI

The cache will be happy, but I doubt that one would like to relay in such a way on a service with an availability that can’t be controlled. For testing purposes and experimenting it’s great – no question.

Comment by Stephan Schwab — November 29, 2006

I wonder if it would be possible to have it included by deafult, but fall back onto a local copy if it isnt available. Now that would make it totally viable.

Comment by Irfan — November 29, 2006

Leave a comment

You must be logged in to post a comment.