code: function getLoader (location) {
    var scheme = getScheme(location);
    var loader = supportedLoaders[scheme];
  
    if (typeof loader === 'undefined') {
      if (scheme === '') {
        loader = defaultLoader;
      } else {
        throw new Error('Unsupported scheme: ' + scheme);
      }
    }
  
    return loader;
  }
docs: Utility that provides a single API for loading the content of a path/URL.
  
  @module path-loader