[whatwg] Proposal: requestBackgroundProcessing()

Maciej Stachowiak mjs at apple.com
Thu Feb 20 10:51:43 PST 2014

> On Feb 20, 2014, at 9:01 AM, Boris Zbarsky <bzbarsky at MIT.EDU> wrote:
>> On 2/20/14 11:18 AM, Tab Atkins Jr. wrote:
>> (If people used rAF for what it was *intended* for, we could probably
>> have stopped firing it *entirely* when the window isn't visible.
> We do.  At least Chrome and Firefox do.

Safari too.

>> Instead, we had to compromise with the 1s refresh rate instead.)
> That's what Chrome and Firefox do for setTimeout/setInterval.

We actually clamp timers even more for background tabs if the page has not done anything externally observable (e.g. Send or receive network data) in a while.


More information about the whatwg mailing list