ifvisible.js is a lightweight way to check if a user is looking at the page or interacting with it. Check out the demo, read the code example, or check the annotated source.

Features

  • Code examples available
  • Demo available
  • Documentation available
  • Handle tab switch or browser minimize states
  • ifvisible.js can handle activity states too
  • You can manually trigger status events
  • You can use ifvisible.off() to remove event triggers

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow ifvisible.js

ifvisible.js Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of ifvisible.js!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript Libraries

Registered

2024-05-21