Re: [whatwg] Proposal: requestBackgroundProcessing()

> On Feb 20, 2014, at 9:01 AM, Boris Zbarsky <bzbarsky@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.

Cheers,
Maciej

Received on Thursday, 20 February 2014 18:52:21 UTC