I'm having trouble with the drop-down navigation being flattened and completely shown for sever开发者_Python百科al seconds while a page is loading. It usually only shows on pages that are more info-heavy, so I'm assuming its loading the navigation really fast.
Is there a way to delay loading the navigation bar until after all of the info is loaded? I tried writing a javascript onLoad function, but that just led me to a bunch of form errors for some reason.
One simple method could be wrapping your navigation in an HTML element with attribute display:none;
, then when the DOM is loaded you could remove the attribute. I think that should keep it hidden from the beginning.
精彩评论