title: Animated gif only loops once in Chrome and Firefox
body: <p>I have an animated gif that I want to display any time a page is loading. When I view the image outside of a browser, the image loops infinitely and works just fine, but whenever I'm displaying the image in a browser, the animation only loops once. Does anyone have any suggestions for making the image loop infinitely?</p>
  
  <p>Currently I'm just doing this to make the image appear which does make it appear, but only loops once:</p>
  
  <pre><code>document.getElementById('ajaxloader').innerHTML = 
      '&lt;img src="images/ajax-loader.gif" title="Loading, please wait.."&gt;';
  </code></pre>