Skip to content

Instantly share code, notes, and snippets.


Niall Kennedy niallkennedy

View GitHub Profile

Keybase proof

I hereby claim:

  • I am niallkennedy on github.
  • I am niallk ( on keybase.
  • I have a public key ASBtnrxnPqcdyAy3NwpS6467eoKA2oRvJGyXPMpSTIeKTgo

To claim this, I am signing this object:

niallkennedy / visibility.js
Created Jun 19, 2011
Page Visibility API visibility test using jQuery
View visibility.js
var isVisible = false;
function onVisible() {
isVisible = true;
if ( document.webkitVisibilityState === undefined || document.webkitVisibilityState === "visible" ) {
} else {
jQuery.bind( "webkitvisibilitychange", function() {
You can’t perform that action at this time.