code: function scriptCacheCallback(evt) {
          var node = evt.currentTarget || evt.srcElement, i,
              moduleName, resource;
  
          if (evt.type === "load" || readyRegExp.test(node.readyState)) {
              //Pull out the name of the module and the context.
              moduleName = node.getAttribute("data-requiremodule");
  
              //Mark this cache request as loaded
              cached[moduleName] = true;
  
              //Find out how many ordered modules have loaded
              for (i = 0; (resource = cacheWaiting[i]); i++) {
                  if (cached[resource.name]) {
                      resource.req([resource.name], resource.onLoad);
                  } else {
                      //Something in the ordered list is not loaded,
                      //so wait.
                      break;
                  }
              }
  
              //If just loaded some items, remove them from cacheWaiting.
              if (i > 0) {
                  cacheWaiting.splice(0, i);
              }
  
              //Remove this script tag from the DOM
              //Use a setTimeout for cleanup because some older IE versions vomit
              //if removing a script node while it is being evaluated.
              setTimeout(function () {
                  node.parentNode.removeChild(node);
              }, 15);
          }
      }
docs: Callback used by the type="script/cache" callback that indicates a script has finished downloading.