/jquery.pagevisibility

Page visibility normalization between browsers

Primary LanguageJavaScript

jquery.pagevisibility

This plugin normalizes the prefixed names for the Page Visibility API so that you can simply use the unprefixed "visibilitychange" event with jQuery and use the unprefixed document.hidden and document.visibilityState properties.

In browsers where the Page Visibility API isn't supported, we provide a "good enough" shim using focus/blur events, however the real Page Visibility API cannot be polyfilled so the behaviors will not be identical.

See the page visibility entry on the MDN for more information.

License

Copyright (c) 2013 Daniel Herman, contributors Licensed under the MIT license.