Responsive-Off-Canvas-Menu
Responsive-Off-Canvas-Menu copied to clipboard
Var Inner is being parsed before DOM ready if the script is loaded in the document head
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';
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