---
title: "Discussion on \"Page visibility API to the rescue\" | Hashnode"
description: "Discussion on \"Page visibility API to the rescue\". I want to pause videos, image carousels, or animations when the user leaves the page. Page Visibility API lets you know when a user has left the page"
url: "https://hashnode.com/posts/page-visibility-api-to-the-rescue/63a555da3916c9c9a801f534"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Page visibility API to the rescue](https://rajatexplains.dev/page-visibility-api-to-the-rescue?utm_source=hashnode&utm_medium=feed)

I want to pause videos, image carousels, or animations when the user leaves the page. Page Visibility API lets you know when a user has left the page

Dec 23, 2022 · 4 min read · rajatexplains.dev  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#apis](https://hashnode.com/tag/apis)
-   [#dom](https://hashnode.com/tag/dom)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#pagevisibility](https://hashnode.com/tag/pagevisibility)

## Written by

[Rajat Jain](https://hashnode.com/@rajatexplains)

@rajatexplains · Bengaluru, India

  
[View profile](https://hashnode.com/@rajatexplains)

Software Engineer II 👨‍💻 at Uber | ex-Microsoft | Javascript ❤️ | Mentor 👨‍🏫 at CodeAsylums | Tech Speaker 🗣️ | React | GraphQL

I am a UI/UX enthusiast currently working as an engineer in Uber. Prior to this, I was at Microsoft for 4 years working on their most loved and complex product Microsoft Teams. I have a professional experience of training students in software engineering and computer science concepts and helping them land their dream jobs.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
