setTimeout continues in hidden Chrome tab

 I used 'setTimeout' to run a 20 second animation again two minutes after it first starts.


But if I change tabs in Chrome after a a few seconds and come back to the original tab after a few minutes, then the first and second animations run together.


It seems the hidden tab freezes but 'setTimeout' still counts down the seconds. 



Comments

Popular posts from this blog

Minifying CSS

Violating Flickr's terms of service

How a CSS fish animation works