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
Создано
12.06.2014
Обновлено
12.06.2014
Размер
4,9 КБ
Лицензия
нет данных
Работает на
всех сайтах

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.

长期地址
遇到问题?请前往 GitHub 提 Issues。