Ifvisible.js – Check Page Focus

IfVisible.js allows you to check if the user is looking at or interacting with the web page.