/momentum

Primary LanguageJavaScriptMIT LicenseMIT

Momentum

Patches setInterval, clearInterval, setTimeout and clearTimeout to avoid browser throttling these functions when tab is inactive.

Usage

Just add the script before using setInterval, clearInterval, setTimeout and clearTimeout. For example you can add it with a <script> tag in the head before loading other javascript files.