Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Nested loading not working in IE10 #15

Open
arfordweb opened this issue Jun 7, 2013 · 1 comment
Open

Nested loading not working in IE10 #15

arfordweb opened this issue Jun 7, 2013 · 1 comment

Comments

@arfordweb
Copy link

I made sure to grab the latest minified version of LazyLoad and test again before filing this issue.

I'm writing an application that does nested loading of JS files for development. I'm concatenating and minifying all those scripts into a single file for production. In development, this is what my LazyLoad loading looks like:

LazyLoad.js([
    './dev/js/lib/jquery.js',
    './dev/js/lib/json2.js',
    './dev/js/lib/swfobject.js',
    './dev/js/lib/web_socket.js'
], function(){
    LazyLoad.js([
        // dependent on jQuery
        './dev/js/lib/underscore/underscore.js',
        './dev/js/lib/backbone/backbone.js',

        // bootstrap modules
        './dev/js/lib/bootstrap/bootstrap-affix.js',
        './dev/js/lib/bootstrap/bootstrap-dropdown.js',
        './dev/js/lib/bootstrap/bootstrap-tooltip.js',
        './dev/js/lib/bootstrap/bootstrap-alert.js',
        './dev/js/lib/bootstrap/bootstrap-modal.js',
        './dev/js/lib/bootstrap/bootstrap-transition.js',
        './dev/js/lib/bootstrap/bootstrap-button.js',
        './dev/js/lib/bootstrap/bootstrap-popover.js',
        './dev/js/lib/bootstrap/bootstrap-typeahead.js',
        './dev/js/lib/bootstrap/bootstrap-carousel.js',
        './dev/js/lib/bootstrap/bootstrap-scrollspy.js',
        './dev/js/lib/bootstrap/bootstrap-collapse.js',
        './dev/js/lib/bootstrap/bootstrap-tab.js'
    ], function(){
        //LazyLoad.js([
            // backbone classes; not added yet
            //
        //], function(){
            LazyLoad.js('./dev/js/_script');
        //});
    });
});

The above works in all browsers except IE10. The first 4 files above load, then all loading stops. So, underscore and backbone and all the files that depend on them are not being loaded.

@arfordweb
Copy link
Author

Oops. I just noticed there is a Pull Request for a version that fixes this issue (#13). I tested the code in that update. It's working properly in IE10.

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

No branches or pull requests

1 participant