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

> For instance, imagine that you have an object moving on the screen that use deltas for each position increment. However, you're using requestAnimationFrame, so if you change to another tab and then come back, the delta that this code will give you is not the difference from the last time you were in the tab to now (which is what you want).

Hmmm, good observation, though isn't this use-case dependent? You may want to "freeze" your application when navigating to other tab, but you may also want to let "simulation" run (imagine something like Farmville, you want crops to grow even when being away).