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

Bug when trying to load unsupported file types (on IE11) #256

Open jamesalvarez opened 6 years ago

jamesalvarez commented 6 years ago

When I try to load files that are unsupported e.g. 'wav' on a browser (specifically in this case IE11), there is no error message, but more specifically, the 'complete' event is fired x amount of times (the same number as files I wanted to download).

Windows 10, IE11

No, apart from just not trying to load unsupported files types, or checking before!

var queue = new createjs.LoadQueue(false); queue.installPlugin(createjs.Sound); queue.on("complete", function() { finishedCallback(true); }, this);

    var retried = [];

    queue.on("error", function(error) {
        finishedCallback(false);
    });

    // register sounds
    for(var i = 0; i < urlsList.length; i++) {
        var sound = urlsList[i];
        queue.loadFile({id:i, src: sound});
    }

    queue.setMaxConnections(5);
    queue.load();