#4760·SignalR

unload event in documents are deprecated

Author: cengizhanpeceCreated Mar 9, 2026Updated May 27, 2026

Chrome deprecating unload events now. signalr JS files uses this event ( unload ). Deprecation causes errors in dev console. see: https://developer.chrome.com/docs/web-platform/deprecating-unload

Alternatives for the unload event are visibilitychange and pagehide. I think these should be used instead of unload event if possible.

Image

As a workaround for now i added default headers to my Web.config to enable unload functionality. <add name="Permissions-Policy" value="unload=(self)" />

Issue happens in latest version too.