I have a Java web application in which I use jQuery to make AJAX call to the server for data. I receive XML document. I get the data from XML document and append the values to HTML tags. Right before the AJAX call I display a loading image. When or where should I stop the loading image? How can I know when HTML tags are filled up? Thanks.