Skip to content

Commit

Permalink
new: visibility-of-browser-document.md
Browse files Browse the repository at this point in the history
  • Loading branch information
byt3h3ad committed Mar 1, 2024
1 parent 099b4ae commit 360c2b6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions javascript/visibility-of-browser-document.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Be informed of when a browser document is visible

A browser's `visibilityState` property is an essential aspect of web development that plays a crucial role in optimizing user experience and resource management in web applications. This property is part of the [Page Visibility API](https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API), a web standard that provides developers with the ability to determine the current visibility state of a webpage.

The concept of visibility state revolves around whether a webpage is in a "visible" or "hidden" state. When a user navigates to a different tab, minimizes the browser window, or locks the screen, the webpage becomes "hidden". Conversely, when the webpage is in the foreground, and the user actively interacts with it, the state is "visible".

0 comments on commit 360c2b6

Please sign in to comment.