Featured post
jquery ui - How do I know when HTML has fully rendered -
case 1:
i load large html page includes lot of complex layout , fonts. page take unknown time render.
case 2:
i use jquery .html() function make significant changes dom. modified dom take unknown time render.
in both cases, want able cover whole screen spinner until page has completely finished rendering.
in searching answers question, have found similar questions asked answers not relevant. clear:
i don't want know when dom ready.
i don't want know when http data has been fetched.
i want know when in dom has been completely drawn screen.
setting worst-case timeout not acceptable solution.
i need solution webkit based browsers.
just small point; browsers won't animate spinner whilst they're processing javascript. particularly ies behave single-threaded.
it's worth using different, non-animated, design 'spinner'. hourglass.
thought when's rendered challenge: why not put after initialisation code call in $(document).ready event. in case of ies, should fire last.
- Get link
- X
- Other Apps
Comments
Post a Comment