Page visibility normalization between browsers
JavaScript CSS HTML
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
Gruntfile.js
README.md
jquery.pagevisibility.jquery.json
jquery.pagevisibility.js
jquery.pagevisibility.min.js
package.json

README.md

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.