Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 702 Bytes

README.md

File metadata and controls

10 lines (6 loc) · 702 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.