You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Chrome deprecation warning: UnloadHandler from Daily.co SDK #150
The deprecation warning originates from the underlying Daily.co SDK (@daily-co/daily-js), which registers an unload event handler internally for WebRTC connection cleanup when users navigate away from the page.
Chrome has been deprecating the unload event since version 117 because:
It's unreliable and doesn't always fire
It prevents the back/forward cache (bfcache) from working properly
Current: The warning is informational and does not break functionality
Future: Chrome is gradually phasing out unload handlers. Eventually they will stop firing entirely unless explicitly opted-in via Permissions-Policy headers
Expected Behavior
No deprecation warnings should appear. The SDK should use modern alternatives like pagehide or visibilitychange events for cleanup operations.
Suggested Fix
This may require coordination with Daily.co to update @daily-co/daily-js to replace unload event handlers with pagehide event handlers, which:
Are more reliable
Don't block bfcache
Are the recommended replacement per Chrome's deprecation guide
Steps to Reproduce
Install @vapi-ai/web v2.5.2
Initialize Vapi with an API key
Call vapi.start(assistantId) to begin a web call
Open Chrome DevTools Console
Observe the deprecation warning
Additional Context
This issue may need to be reported upstream to Daily.co's daily-js repository as well, since the unload handler is registered within their SDK rather than directly in @vapi-ai/web.
Activity