PollJS is a lightweight wrapper for the JavaScript interval and timers. It adds some useful features to the standard functionality:

  • Maximum attempt limits
  • Fallbacks
  • Incremental interval times

Tested on all major browsers, the script doesn’t depend on any third party library but will work happily alongside any of them and at ~1.5k its a tidy little package.

via mtrpcic/polljs – GitHub.

Comments

Leave a Reply