ifvisible

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

Version

Asset Type

  • https://cdnjs.cloudflare.com/ajax/libs/ifvisible/1.0.3/ifvisible.min.js
  • https://cdnjs.cloudflare.com/ajax/libs/ifvisible/1.0.3/ifvisible.js