How to add a pre-load animation until the page is fully loaded using jQuery click function?
<p>I would like to know a way that it will show a pre-load.gif in #page until the page is fully loaded.<br>
How to do this?</p>

<pre><code>$('#target').click(function() {
  $('#page').html('first page load'); //will be replaced with .load
});

$('#target2').click(function() {
  $('#page').html('second page load'); //will be replaced with .load
});
</code></pre>

<p>Please take a look into the working example
<a href="http://jsfiddle.net/EZj4R/1/" rel="nofollow">http://jsfiddle.net/EZj4R/1/</a></p>
