[webkit-dev] setTimeout as browser speed throttle
Peter Speck
speck at vitality.dk
Fri Oct 3 06:08:53 PDT 2008
On 03/10/2008, at 14:16, Maciej Stachowiak wrote:
>> [...] Other sites update their title on a timer in a way that is
>> useful for a background tab. For example, GMail updates the unread
>> count, which is quite useful on a background tab label. [...]
Maybe the new Timer API should be extended with an option for: should
this timer be executed when the page is hidden in a background tab.
Animation timers would then specify no, thereby reducing amount of cpu/
battery consumed.
GMail could specify yes: low-overhead update of the unread count in
background.
It would make sense to have the default to be false, and to be the
last parameter.
----
- Peter Speck
More information about the webkit-dev
mailing list