Crossbrowser & lightweight way to check if user is looking at the page or interacting with it. (wrapper around HTML5 visibility api)

MIT licensed

Tags: visibility, HTML5, cross, browser, api, UI, idle, status, mousemove, reading, mode, tab, change


Asset Type

  • https://cdnjs.cloudflare.com/ajax/libs/ifvisible/1.0.2/ifvisible.js
  • https://cdnjs.cloudflare.com/ajax/libs/ifvisible/1.0.2/ifvisible.map

Library Tutorials

Want to write your own awesome tutorials? Make and submit them today