code: function load(js, resolver) {
          /*jshint newcap:false, evil:true*/
          // js is not a function
          if (!isFunction(js)) {
              if (isURL(js)) {
                  appendScript(js, resolver);
                  return;
              }
              if (supportDataURI) {
                  // wraps up inline JavaScript into external script
                  js = dataURIPrefix + encodeURIComponent(js);
                  appendScript(js, resolver);
                  return;
              }
          }
  
          var fn = isFunction(js) ? js : Function(js);
  
          // a synchronous function is wrapped into a special function
          // so that we could use the same logic as an asynchronous function
          if (!resolver.async) {
              var task = fn;
              fn = function (resolver) {
                  try {
                      task.call(null);
                      resolver.resolve();
                  }
                  catch (e) {
                      resolver.reject(e);
                  }
              };
          }
  
          loadFunction(fn, resolver);
      }
docs: @private
  @name load
  Loads one request or executes one chunk of code
  
  @param {String|Function} js
  @param {Function} resolve