How to create loading script in my case
<p>I am trying to create loading script for my site. When the user clicks the button, it will call bunch functions and it takes time to load. I don't want the users to wait without loading gif. Are there any ways to solve this? Thanks a lot.</p>

<p>onload doesn't seem to work...</p>

<pre><code>$('.test').click(function(){
  fun1();
  fun2();
  fun3();
  ....more
})
</code></pre>
