Last Comment Bug 379535 - Throttle setTimeout/Interval callbacks in content if callbacks are called too frequently (in background windows/tabs)
: Throttle setTimeout/Interval callbacks in content if callbacks are called too...
Product: Core
Classification: Components
Component: DOM: Core & HTML (show other bugs)
: unspecified
: x86 Linux
-- normal with 1 vote (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
: Andrew Overholt [:overholt]
Depends on: 633421
  Show dependency treegraph
Reported: 2007-05-02 16:10 PDT by Manish Singh
Modified: 2011-08-31 01:28 PDT (History)
8 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Description User image Manish Singh 2007-05-02 16:10:30 PDT
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20070502 Firefox/ Flock/
Build Identifier: 

I noticed this on, they have a news ticker that is driven by animation code (, where they use a setTimeout of 10 ms to update the animation. Even while sitting in a background tab, the browser consumed 50% of CPU while idle.

To mitigate this, the browser could keep track of where and how often timeouts are scheduled, amd throttle down content that tries to schedule things too often.

Reproducible: Always

Steps to Reproduce:
Comment 1 User image Boris Zbarsky [:bz] (still a bit busy) 2011-08-30 20:33:26 PDT
Bug 633421 fixed this.

Note You need to log in before you can comment on or make changes to this bug.