Socket
Socket
Sign inDemoInstall

hacktimer

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    hacktimer

Avoid timers throttling by browser when tab is inactive


Version published
Weekly downloads
1.3K
decreased by-33.37%
Maintainers
1
Install size
11.3 kB
Created
Weekly downloads
 

Readme

Source

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

{
  "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 .

Keywords

FAQs

Last updated on 28 May 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc