Possible Duplicate:
Stopping GIF Animation Programmatically
When I have a page open with an animated GIF in it, and the tab is active in the window, it uses up CPU.
I'm wondering if there's a way to mark up the HTML so that a GIF will play for a specified amount of time or number of loops.
Or perhaps I am best served by using a static image and setting its source to the GIF on hover (which I believe most mobile browsers patch by allowing hover to be set on tap).