JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 247
  • Score
    100M100P100Q88203F

Detect when the browser is idle

Package Exports

  • on-idle

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (on-idle) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

on-idle stability

npm version build status downloads js-standard-style

Safely detect when the browser is idle. Does nothing when run in Node.

Usage

var onIdle = require('on-idle')
var html = require('bel')

onIdle(function () {
  var el = html`<h1>browser is idle</h1>`
  document.body.appendChild(el)
})

License

MIT