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

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

2 participants