Sometimes images take some time to render in the browser. I want to show a busy image while the actual image is downloading, and when the image is downloaded, the busy image is removed and the actual image should be shown. How can I do this with JQuery or any javascript?
Share
You can do something like this:
You assign
loadevent to the image which fires when image has finished loading. Before that, you can show your loader image.