serkanyersen / ifvisible.js

Crossbrowser & lightweight way to check if user is looking at the page or interacting with it.

Home Page:http://serkanyersen.github.com/ifvisible.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No debounce is applied

quantbhn93 opened this issue · comments

Currently, the event gets fired on every user interaction such as clicking multiple times, moving mouse or resizing window.
Debounce must be applied to prevent browser from getting bogged down quickly.

@quantbhn93 I have just released an updated version of this library with throttling added as an improvement. Please see 3.2.0 https://github.com/rosskevin/ifvisible/releases