W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2011

[whatwg] setTimeout clamps

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sat, 15 Jan 2011 21:29:04 -0500
Message-ID: <4D3257F0.6020407@mit.edu>
I've been looking at the setTimeout clamping in Gecko recently, and one 
thing I've been interesting in trying is to clamp differently in 
different windows (for example, have a lower clamp in active windows and 
a higher one in inactive ones).  That's not something the spec seems to 
allow right now, but I think it would be beneficial to users in terms of 
preventing inactive windows from accidentally hogging the CPU.

Note that right now in Gecko "active window" means "currently selected 
tab in some browser window" and "inactive window" means "background 
tab", but that's subject to change.

-Boris
Received on Saturday, 15 January 2011 18:29:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:01 GMT