Ifvisible.js : To Check User Status on the Page
ifvisible.js is an impressive, crosbrowser & lightweight way to check if user is looking at the page or interacting with it. It can handle activity states too, such as being IDLE or ACTIVE on the page. …