mrdoob/timer.js — comment on commit 098198480dd9c27bffec236bb523feba1a9c272d
File: src/Timer.js line 24
By mrdoob:

I guess you can use the [Page Visibility API](http://code.google.com/chrome/whitepapers/pagevisibility.html) for that (stopping the timer when hidden).

Here's the new code:
https://github.com/mrdoob/timer.js/blob/master/src/Timer.js