title: Animated image not moving during long Javascript method call
body: <p>During a method that runs for 10 seconds to add some elements to the html, the animated gif don't move at all, giving the feel that the web page is stuck. Any way around this.</p>
  
  <p>Example code:</p>
  
  <pre>
      $('#button).click(function() {   
          showAnimatedGif();
          longRunningMethod();    
          hideAnimatedGif();
      });  
  </pre>
  
  <p>One way around this is to breakup the long running method in multiple steps and animating this way, but then you have to write your code this way for each long running method.</p>
  
  <p>Wondering if there is any otherway to do this ?</p>