title: Add a loading animation to jquery ajax .load()
body: <p>I currently have this code and it's pretty simple</p>
  
  <pre><code>$('#window').load('http://mysite.com/mypage.php');
  </code></pre>
  
  <p>But it shows the content only after fully loaded and during that duration the #windows element remains empty.
  I want to show a loading image until the page loads. How should i do it?
  The jquery site explains nothing about it. (afaik)</p>