Crossbrowser & lightweight way to check if user is looking at the page or interacting with it. (wrapper around HTML5 visibility api)
Tags: visibility, HTML5, cross, browser, api, UI, idle, status, mousemove, reading, mode, tab, change
Help support cdnjs
You can contribute on
GitHub to help make cdnjs sustainable!
Or, donate $5 to cdnjs via
Open Collective or Patreon.