Skip to main content

document.visibilityState polyfill

import "@mrhenry/core-web/modules/document.visibilityState";

browsers

  • Android Webview:
    <4.4.3
  • Chrome:
    <33
  • Firefox:
    <18
  • Firefox Android:
    <18
  • Opera:
    <20
  • Opera Android:
    <20
  • Safari:
    <7.0
  • iOS Safari:
    <7.0
  • Samsung Mobile:
    <2.0

notes

  • The alias `PageVisibility` works for this feature for backwards compatibility with the name under which it was previously (erroneously) available

dependencies