Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 872 Bytes

README.md

File metadata and controls

11 lines (7 loc) · 872 Bytes

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. githalytics.com alpha