I'm not sure if this method will cause the browser to request GIFs from its server a second time, but this forces the GIF animation to restart on the following pages:
Your image:
<img id="animatedgif" src="picture.gif">
And at the bottom of the page, next to the closing BODY and HTML tags:
<script type="text/javascript"> document.getElementById("animatedgif").src = ""; document.getElementById("animatedgif").src = "picture.gif"; </script>
source share