Responsive-Off-Canvas-Menu icon indicating copy to clipboard operation
Responsive-Off-Canvas-Menu copied to clipboard

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

Open nikglavin opened this issue 11 years ago • 1 comments

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

nikglavin avatar Nov 24 '13 23:11 nikglavin

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

torkiljohnsen avatar Jul 29 '14 08:07 torkiljohnsen