Wednesday, November 29th, 2006

Including Dojo via the AOL CDN

Category: Dojo

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=""></script>

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

<script src=""></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.

Posted by Dion Almaer at 9:19 am

3.5 rating from 17 votes


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.