Checks if the current page is visible or not Download .zip Download .tar.gz View on GitHub ifvisible.js Crosbrowser & lightweight way to check if user is looking at the page or interacting with it. Check out the Demo or read below for code example or Check Annotated Sorce // If page is visible right now if( ifvisible.now() ){ // Display pop-up openPopUp(); }