docs: function loadTrack(src, track) {
    var opts = {
      uri: src
    };
    var crossOrigin = (0, _url.isCrossOrigin)(src);
  
    if (crossOrigin) {
      opts.cors = crossOrigin;
    }
  
    (0, _xhr2['default'])(opts, Fn.bind(this, function (err, response, responseBody) {
      if (err) {
        return _log2['default'].error(err, response);
      }
  
      track.loaded_ = true;
  
      // Make sure that vttjs has loaded, otherwise, wait till it finished loading
      // NOTE: this is only used for the alt/video.novtt.js build
      if (typeof _window2['default'].WebVTT !== 'function') {
        if (track.tech_) {
          (function () {
            var loadHandler = function loadHandler() {
              return parseCues(responseBody, track);
            };
  
            track.tech_.on('vttjsloaded', loadHandler);
            track.tech_.on('vttjserror', function () {
              _log2['default'].error('vttjs failed to load, stopping trying to process ' + track.src);
              track.tech_.off('vttjsloaded', loadHandler);
            });
          })();
        }
      } else {
        parseCues(responseBody, track);
      }
    }));
  }