Such a thing: on the page there is a gif-image, which should be shown during ajax-loading of content. The image is written in the html-code
<img src="img.gif" id="img" style="display: none">
Before loading the data, I show it in the diva:
$('#myDiv').append($('#img').show());
After downloading the content in the same div, as I understand it, the image is removed from the DOM. And I can't reuse it. I tried to display not the image itself, but its clone, but probably there is a more concise solution.