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
Want to write your own awesome tutorials?
Make and submit them today
No tutorials found, want to write one?
Help support cdnjs
You can contribute on
GitHub to help make cdnjs sustainable!
Or, donate $5 to cdnjs via
Open Collective or Patreon.