Go to file
2015-07-10 20:50:04 +05:00
HackTimer.js Adding evident comment when callback conversion from code string fails. Moved hardcoded string for logs to variable. 2015-07-10 20:11:09 +05:00
HackTimer.min.js Updated minified version 2015-07-10 20:50:04 +05:00
HackTimerWorker.js Initial commit 2015-06-29 02:54:41 +05:00
HackTimerWorker.min.js Minified version optimised 2015-07-01 20:38:44 +05:00
README.md Update README.md 2015-07-01 22:11:29 +05:00

HackTimer

Avoid timers throttling by browser when tab is inactive

Usage:

Place script reference to HackTimer.js (or HackTimer.min.js) before any other JavaScript

Notes

Loader code HackTimer.js (or HackTimer.min.js) may be placed in separate file or in script tag. Worker code HackTimerWorker.js (or HackTimerWorker.min.js) must be placed in separate file. To change worker code script name go to the end of HackTimer.js (or HackTimer.min.js) file and replace script name.

Warning

Full code (HackTimer.js and HackTimerWorker.js) must not be used with minified (HackTimer.min.js and HackTimerWorker.min.js), i.e. HackTimer.js must use only HackTimerWorker.js and HackTimer.min.js must only use HackTimerWorker.min.js .