HackTimer/README.md

44 lines
1.4 KiB
Markdown
Raw Normal View History

2015-06-28 22:04:32 +00:00
# HackTimer
Avoid timers throttling by browser when tab is inactive
2015-07-01 15:43:38 +00:00
# Usage:
2015-07-24 16:59:58 +00:00
Place script reference to **HackTimer.js** (or HackTimer.min.js) before any other JavaScript
2015-07-01 15:43:38 +00:00
2015-09-27 11:37:48 +00:00
# NPM
Command: `npm install hacktimer --reg https://www.myget.org/F/hack-timer/npm`
Latest version is 1.1.0
2015-09-27 11:37:48 +00:00
Registry URL: https://www.myget.org/F/hack-timer/npm
2015-09-27 10:42:38 +00:00
# Bower
Command: `bower install hacktimer`
Latest version is 1.1.0
Registry: https://www.myget.org/F/hack-timer/bower/
2015-09-27 10:42:38 +00:00
You can specify bower registry in file `.bowerrc` in your working directory
```json
{
"registry": {
"search": [
"https://www.myget.org/F/hack-timer/bower/",
2015-09-27 10:42:38 +00:00
"https://bower.herokuapp.com"
]
}
}
```
2015-07-01 15:43:38 +00:00
# Notes
2015-07-24 16:59:34 +00:00
Loader code **HackTimer.js** (or HackTimer.min.js) may be placed in separate file or in script tag.
2015-07-01 17:11:29 +00:00
2015-07-24 16:59:34 +00:00
Worker code **HackTimerWorker.js** (or HackTimerWorker.min.js) must be placed in separate file. It is used to fallback if Blob is not supported
To **change** worker code **script name** or path go to the end of **HackTimer.js** (or HackTimer.min.js) file and replace script name.
2015-07-24 16:59:34 +00:00
**HackTimer.silent.min.js** writes to log only if initialisation failed. Use it with **HackTimerWorker.min.js** .
# 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 use **only HackTimerWorker.min.js** .