Background tab setTimeout muffler

Defers setTimeout calls if no user input has been received for 15 seconds. Useful for stopping background tabs from continuing to use CPU cycles.

作者
BinarySplit
今日安裝
0
安裝總數
175
評價
3 0 0
版本
1
建立日期
2014-06-12
更新日期
2014-06-12
尺寸
4.9 KB
授權條款
未知
腳本執行於
所有網站

Defers setTimeout calls if no user input has been received for 15 seconds. Useful for stopping background tabs from continuing to use CPU cycles. Only tested on Firefox.

This only handles the most common classes of background tab CPU abuse. It's still possible to use XMLHttpRequests, requestAnimationFrame, browser plugins, and possibly other tricks to continue to use the CPU while in the background.