[Bug 15007] Add an API to queue a task

https://www.w3.org/Bugs/Public/show_bug.cgi?id=15007

--- Comment #13 from Glenn Maynard <glenn@zewt.org> 2011-12-02 17:05:02 UTC ---
(In reply to comment #12)
> How is this not setTimeout(task, 0)?

(We've had that discussion before, I'll postpone rehashing it in favor of
seeing other people's thoughts.)

(In reply to comment #11)
> This isn't intended for driving animations. I can see a case for giving
> background tabs lower priority, but I don't think they should stop completely
> like requestAnimationFrame, or throttle to 1s like setTimeout.

setTimeout throttles to 4ms, not one second, and only for nested timeouts (at
least per spec).  But that's all just a workaround for legacy code--code tested
in browsers that had a 10ms minimum timeout.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 2 December 2011 17:05:09 UTC