document.getElementById('divid').innerHTML = '<img src="imagepath" alt="Loading">';
How to use:
Before loading the content to div we have to use the above code with same divid
After that load your content to same div using innerHTML. We can't identify this image in localhost because it is fastly switched to content but in server we can see this image
No comments:
Post a Comment