Resolving Deprecated Unload Event Listeners in Chrome for ASP.NET AJAX
Environment
Product | Progress® Telerik® UI for ASP.NET AJAX |
---|---|
Version | all |
Description
In the latest Chrome version (v127), an issue arises due to the deprecated unload event handler. This affects applications using the RadScriptManager component from Telerik UI for ASP.NET AJAX, as observed in the MultiSelect demo page.
Chrome has officially deprecated the unload event listeners as part of its API changes, detailed here. This deprecation impacts the ASP.NET AJAX applications, causing concerns over the future compatibility and functionality of web applications.
Cause
The root cause of this issue is not within the Telerik codebase but stems from the ASP.NET WebForms framework, specifically the Microsoft AJAX scripts utilized in the ASP.NET applications. Chrome's decision to deprecate the unload event listener is an intended API change, prompting the need for adjustments in the framework provided by Microsoft.
UPDATE: Official Response from Microsoft
Microsoft has confirmed that the deprecation of the unload
event in Chrome is not expected to cause errors. The event will simply stop firing, and given its unreliability in various situations, this change should not significantly affect your applications. You can read more in the official bug tracker issue here.
Barry Pollard, Web Performance Developer Advocate at Google Chrome, also confirmed via tweet here that no errors will occur when the unload
event stops firing.
Solution
While this change should not introduce errors, we recommend the following steps to ensure your applications run smoothly:
-
Monitor for Future Issues: Stay vigilant for any unexpected behavior after the
unload
event is fully deprecated. If you notice any issues, please let us know so we can investigate further. -
Follow Updates: Keep track of updates on the Microsoft Issue Tracker.
Suggested Workarounds
Currently, there are no direct workarounds for this deprecation, but the impact should be minimal. We will continue monitoring the situation and share any new developments as they arise.