Is there any way I could load an image via javascript and then have a callback fire when it is finished?
Thanks for any ideas.
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.
Have you tried this?
UPDATE
sure you can set the background-image of an element with this. Use the onload event to do whatever you like!
setBackroundImage(document.getElementById(‘foobar’), ‘/some/image.jpg’);