Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Page visibility normalization between browsers
JavaScript CSS HTML
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.gitignore
Gruntfile.js
README.md
jquery.pagevisibility.jquery.json
jquery.pagevisibility.js Add setters for old versions of Safari
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. githalytics.com alpha

Something went wrong with that request. Please try again.