Skip to content

Instantly share code, notes, and snippets.

Niall Kennedy niallkennedy

Block or report user

Report or block niallkennedy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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.