Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Var Inner is being parsed before DOM ready if the script is loaded in the document head #12

Open
nikglavin opened this issue Nov 24, 2013 · 1 comment

Comments

@nikglavin
Copy link

Is there a reason these are defined before app.init as the DOM might not always be ready if the script is loaded early ?

        var inner = document.getElementById('inner-wrap'),
            nav_open = false,
            nav_class = 'js-nav';
@torkiljohnsen
Copy link

Shouldn't be an issue when the script is loaded at the end of the document? https://github.com/dbushell/Responsive-Off-Canvas-Menu/blob/master/step4.html

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

2 participants