title: How to show ajax loading gif animation while the page is loading?
body: <p>I try to implement AJAX in my website. When the content of the div changepass is clicked then it should load changepass.template.php. Here is the code im using for that.</p>
  
  <pre><code> $(function() {
     $(".changepass").click(function() {
      $(".block1").load("views/changepass.template.php");
      return false;
   });
  </code></pre>
  
  <p>My question is how to show GIF Animation (loading.gif) while the page changepass.template.php is fully loaded. Give me some code tips Please.</p>