Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IE9+ compatibility #1

Open
revolunet opened this issue Nov 17, 2011 · 1 comment
Open

IE9+ compatibility #1

revolunet opened this issue Nov 17, 2011 · 1 comment

Comments

@revolunet
Copy link
Owner

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....

@revolunet
Copy link
Owner Author

the async/defer attribute on script tags may help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant