revolunet/js-light-loader — Issue #1: IE9+ compatibility
Author: revolunet
Created: 2011-11-17 11:50:54+00:00
State: open

Hi @bydooweedoo ;)

For some reason, something weird happens in IE9.

When i load a bunch of files, the callback is fired before the files are evaluated. They may be loaded, i dont know but not evaluated for sure.

Heres where it failed and my dirty workaround (the if typeof part):

Loader.reset();
Loader.addApplication('MyApp', MyApp_requirements);
Loader.start('MyApp', function() {
if (typeof(Seadragon)=='undefined') {
setTimeout(Loader.callback, 250);
return;
}
Seadragon.Config.imgPath = '/apps/widget/static/img/seadragon';
});

In some case (not always), the `Seadragon`variable, defined in one of the loaded file, was undefined....