开发者

Pushing back the load time of specific ASP.NET elements

开发者 https://www.devze.com 2023-03-10 10:11 出处:网络
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-h

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消