CreateJS / PreloadJS

PreloadJS makes preloading assets & getting aggregate progress events easier in JavaScript. It uses XHR2 when available, and falls back to tag-based loading when not.
http://createjs.com/
MIT License
2.88k stars 761 forks source link

Propagate original HTTP error event #230

Open liy opened 7 years ago

liy commented 7 years ago

There could multiple types of loading error. At the moment it is hidden by the custom ErrorEvent. For example, there is no way to tell the file request is cancelled or it is actually missing.

https://github.com/CreateJS/PreloadJS/blob/master/src/preloadjs/LoadQueue.js#L1611

It make sense to keep the original http error code in your custom ErrorEvent.