Is there a way to force the browser to display a page only after all of the page’s contents are completely loaded (such as images, scripts, css, etc)?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The easiest thing to do is putting a
divwith the following CSS in the body:(Note that
position: fixedwon’t work in IE6 – I know of no sure-fire way of doing this in that browser)Add the DIV like so (directly after the opening
bodytag):show the DIV directly after :
and hide it
onload:or using jQuery
this approach has the advantage that it will also work for clients who have JavaScript turned off. It shouldn’t cause any flickering or other side-effects, but not having tested it, I can’t entirely guarantee it for every browser out there.