开发者

document.Init in jquery?

开发者 https://www.devze.com 2022-12-20 20:53 出处:网络
I am wondering if there is an init function in jquery.I am loading some widgets (just simple divs with content) on document.ready(). I would开发者_如何学Python rather preload everything FIRST and then

I am wondering if there is an init function in jquery.I am loading some widgets (just simple divs with content) on document.ready(). I would开发者_如何学Python rather preload everything FIRST and then render the page. Instead of loading all the non asych elements first and then the ajax components next, as this is causing a bit of a "flash" when the page loads.

Any ideas?


You can load in the section you don't want to have a flash outside the visible area of the page load (like with a negative margin) and then move it into the correct space on your page on the load event of the element group.

0

精彩评论

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