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.91KB
라이선스
해당 없음
적용 사이트
모든 사이트

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。