Is there anyway I can delay the display of the HTML code (page) until some certain images are loaded so that the layout appears with the header images as well as the HTML?
Thank you.
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.
This should do it, but it’s your responsibility to protect the clients from themselves – after all, you’re the professional…
note: using
display = 'none'instead doesn’t work in my (somewhat old) Opera 10.10 as theonloadwill fire immediately…Also, this will delay displaying the page until all external resources have been loaded. If you only want to wait for certain images, you’ll need a more sophisticated script (untested):