Is there any way to show a loading image while loading a image?
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 way would be to set a background image with css on the img element (or the containing element) – no javascript needed (you will, of course, need to set dimensions on the img tag)
If you want to ensure the image isnt displayed until fully loaded you can use this technique.