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.

The last script fails to load in IE10 when using back button. #19

Description

@Etsap

I've noticed that when using the browser's back (or forward) button, the last script doesn't load properly. The code is as such:

<script type="text/javascript" src="Scripts/lazyload.js"></script>
<script type="text/javascript">
    LazyLoad.js(["Scripts/script1.js", "Scripts/script2.js", "Scripts/script3.js"], function() {
        InitializeApplication(); //Defined in script3.js
    }
</script>

This code works just fine normally, but when I use the browser's back/forward buttons, the last script in the list doesn't load and InitializeApplication is undefined. My workaround has been to add a dummy element to the end of the script list. The dummy script of course has no content therefore I don't care if it doesn't load properly. This problem occurs in IE10, but not in Firefox. Any thoughts?

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