code: function MediaLoader (loader, parallelThreshold) {
    this.loader = loader;
    this.resources = {};
    this._loading = {};
    this._threshold = parallelThreshold || 3;
    this._queue = [];
  }
docs: /*
  A wrapper on top of loader, that:
  - cache results
  - maximize parallel loading
  - provide events