Monday, January 30th, 2006

Hosting JavaScript on CDNs? AOL announces the hosting of Dojo

Category: Dojo, Editorial

<p>Back in December we talked about hosting JavaScript on CDNs.

If a thousand applications that your browser has accessed use Dojo or Prototye (or …), then you have many copies of the same file. Wouldn’t it be nice to have these on a CDN and have that take care of it?

We even wanted versioning to be built in, a la maven:

< view plain text >
  1. dojo.require("*", "0.3");


  1. <script type="text/javascript" src="http://cdn/getlibrary?name=dojo-kitchen-sink&version=0.3"></script>

Well, it turns out that this isn’t pie in the sky as AOL is now offering the Dojo Toolkit.

How did this come about?

AOL recently launched a site called I Am Alpha which builds on web standards and your IM network to build and host and lightweight widgets in customzied “container� pages. Think of it as a personalized homepage++; not only can you customize based on the widgets they provide, you can easily construct your own!

I Am Alpha “widgets� are just HTML, CSS, and JavaScript pages that conform to a new microformat. It’s standards-based personal publishing and aggregation on a grand scale. To that end, AOL has selected Dojo as one of the libraries available for use with the platform and put the Ajax build of Dojo 0.2.2 in their Content Distribution Network.

You can use the AOL CDN via:

  1. <script type='text/javascript'>
  2.   djConfig = {
  3.     // your local src/ directory is located at
  4.     baseRelativePath: '/path/to/local/dojo-0.2.2-ajax/'
  5.   };
  6. </script>
  7. <script type='text/javascript'
  8.    src=''></script>
  9. <script type='text/javascript'>
  10.   // pull in the storage APIs
  11.   dojo.require('*');
  12.   // or the JSON utilities
  13.   dojo.require('dojo.json');
  14. </script>

Very cool indeed.

Related Content:

  • EGL Rich UI on IBM i: Do you Dojo?
    Taking advantage of the Rich UI features of EGL architecture on the AS/400 can save you time and complexity. Rich internet applications can be...
  • Upgrade causes hosting problems at AOL
    America Online's service for hosting Web pages is experiencing some outages as the company works to upgrade the servers...
  • Hosted CRM grows up
    Hosted CRM vendors are branching out beyond traditional sales force automation tools, as a flurry of e-mail marketing announcements this month...
  • Hosted CRM sees flurry of enhancements
    NetSuite, Salesnet and Responsys all unveiled enhancements to their products this week, as the demand for on-demand CRM heats...
  • A host of other options
    In the wake of Siebel's new hosting deal, here's a look at hosting services from the other major enterprise CRM...

Posted by Dion Almaer at 8:04 pm

4.2 rating from 21 votes


Comments feed TrackBack URI

and CDN stands for?….

Comment by thicko — January 31, 2006

Last sentence before code: Content Distribution Network.

Comment by badkungfu — January 31, 2006

[...] Shawn Carnell (one of the folks behind AOL’s coolio modules stuff (see Iamalpha) reports that they met with the Ajaxian dudes. [...]

Pingback by Marc’s Voice » Blog Archive » AOL’s modules use Dojo — January 31, 2006

So what happens when they go down?

Comment by ceejayoz — January 31, 2006

Well, I’ve not done an exaustive study but since you supply a url from your website as well as the CDN, I’m guessing that it falls back on your site?


Comment by Cal Evans — January 31, 2006

CDN’s by nature normally don’t go down.

Comment by Bob — March 22, 2006

[...] Here is a list of links that I bookmarked in recent few week about AJAX and related technologies. Hosting JavaScript on CDNs? AOL announces the hosting of Dojo Javascript libraries roundup Dojo Framework Roadmap (pro inspiraci) Preloading Data with Ajax and JSON [...]

Pingback by MARTIN WISO » Blog Archive » Some interesting links from last week — March 25, 2006

Anyone know if they are going to put .3 up on the CDN?..With the xDomain support?…

Comment by Phill Kenoyer — May 20, 2006

Well, I’ve not done an exaustive study but since you supply a url from your website as well as the CDN, I’m guessing that it falls back on your site?

Comment by internet backgammon — June 15, 2006

Great! =)

Comment by winto — September 3, 2007

No thanks, Russian, I went looking for a nerdy girl with good database skills, and long since found and married her.

Now back on topic — found this looking for that definintion of “CDN” (meaning something like Akamai, that holds copies of big commercial web pages like Apple’s and serves them out, saving the company the risk and trouble of hosting all their own pages themselves — right?)

Because I saw this:

Banks ( using CDNs to deliver Javascript: enables password theft by anyone compromising or controlling the CDN

Comment by Hank Roberts — November 20, 2007

Leave a comment

You must be logged in to post a comment.