This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this is the least sucky way i could think of to | |
// detect and deal with a cross-browser impl of the page visibility api | |
// forks welcome. | |
function getHiddenProp() { | |
if ('hidden' in document) return 'hidden'; | |
var prefixes = ['webkit','moz','ms','o'], | |
len = prefixes.length, |