Achieving a runtime CPAN with Dojo's XD loader

James Burke

AOL / Dojo Toolkit

http://dev.aol.com
http://tagneto.blogspot.com

Say what?

The Dream

How?

Why?

Why?

Stone Cold Reality

The Plan: XD Loader

Let's make an XD loader!

function loadFile(/*String*/ scriptUrl){
  var element = document.createElement("script");
  element.type = "text/javascript";
  element.src = scriptUrl;
  document.getElementsByTagName("head")[0].appendChild(element);
}

Problems

Dojo XD Loader

Specify Dependencies

Path abstraction is nice.

XD quirks

XD loader details

Dojo XD in the Real World

The story so far...

Scary second act

Finding a home.

Matchmaker

The Elephant in the Room