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

Nested loading not working in IE10 #15

Description

@arfordweb

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions