Skip to content

Instantly share code, notes, and snippets.

@videlais
Created December 27, 2013 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save videlais/586b44e175a2a3d914d1 to your computer and use it in GitHub Desktop.
Save videlais/586b44e175a2a3d914d1 to your computer and use it in GitHub Desktop.
Visibility1
var Visibility = (function(self) {
self.supported = !!document.webkitHidden ||
!!document.mozHidden ||
!!document.msHidden ||
!!document.oHidden ||
!!document.hidden;
...
})(Visibility || {});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment