Description
When outreach managers are working in other tabs, we want to grab their attention when background tasks complete (like CSV imports). We want to implement dynamic page title changes and favicon badge updates.
User & Contributor Value
- Contributors: HTML5 page visibility API, dynamic document title modifications, and canvas-based favicon drawing.
- Users: Interactive experience that alerts users to completed background tasks without spamming system notifications.
Code Locations
Implementation Guide
- Write JS using the
document.addEventListener('visibilitychange') listener.
- If the user leaves the tab, change the title to
"Come back to LeadOrbit!".
- Optionally, update the favicon to display a small red dot badge when new notifications arrive.
Description
When outreach managers are working in other tabs, we want to grab their attention when background tasks complete (like CSV imports). We want to implement dynamic page title changes and favicon badge updates.
User & Contributor Value
Code Locations
Implementation Guide
document.addEventListener('visibilitychange')listener."Come back to LeadOrbit!".