Strange bug.....
I have a race condition where my angularJS directives for
header
anddrawer
are compiling after material-design-lite initializes the layout.It only seems to happen when I shut my wifi off and work offline. No remote resources are required, though google tag manager, and facebook connect plugin fail in the network tab.
Questions:
- Can I delay MDL's automatic initialization (which I see happens
onload
of the page? - Can I manually reinitialize the mdl-layout so that it properly constructs the drawer button, etc., all over again?
- Does anyone have any idea why being offline would cause any rendering/javascript issues?
I have already tried window.componentHandler.upgradeAllRegistered()
but that doesn't reinitialize the layout