# hacktimer

> Avoid timers throttling by browser when tab is inactive

Latest version **1.1.3** (published 2017-05-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install hacktimer
pnpm add hacktimer
yarn add hacktimer
bun add hacktimer
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2017-05-28 |
| First published | 2017-05-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | turuslan |
| Maintainers | ctubio |
| Keywords | suspend, slow, throttle, timer, interval, timeout, browser, chrome, background, inactive |

## Links

- npm: https://www.npmjs.com/package/hacktimer
- Repository: https://github.com/ctubio/HackTimer
- Issues: https://github.com/ctubio/HackTimer/issues
- npm.io page: https://npm.io/package/hacktimer

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.1.3 (latest) — 2017-05-28
- 1.1.2 — 2017-05-28
- 1.1.1 — 2017-05-28

## README

# 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.
This includes library's such as jQuery as otherwise timed events such as fadeOut and fadeIn will break.

# NPM
Command: `npm install hacktimer`

Latest version is 1.1.0

Registry URL: https://www.myget.org/F/hack-timer/npm

# Bower
Command: `bower install hacktimer`

Latest version is 1.1.0

Registry: https://www.myget.org/F/hack-timer/bower/

You can specify bower registry in file `.bowerrc` in your working directory
```json
{
  "registry": {
      "search": [
          "https://www.myget.org/F/hack-timer/bower/",
          "https://bower.herokuapp.com"
      ]
  }
}
```

# 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. 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.

**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** .

---
_Source: https://npm.io/package/hacktimer · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
