Skip to content

Commit 3c7a512

Browse files
authored
kb(common): share microsoft research and google dev rel answer
1 parent fc112d3 commit 3c7a512

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

knowledge-base/common-resolve-deprecated-unload-event-listeners.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,25 @@ Chrome has officially deprecated the unload event listeners as part of its API c
2323
## Cause
2424
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.
2525

26-
## Solution
27-
Since the problem originates from the Microsoft scripts part of the ASP.NET WebForms framework, the resolution lies beyond the scope of Telerik's direct influence. However, to mitigate this issue and push for a resolution, consider the following steps:
26+
## **UPDATE: Official Response from Microsoft**
2827

29-
1. **Vote on the Microsoft Issue Tracker**: A bug has already been logged in Microsoft's issue tracking system. Voting on this issue will help in prioritizing it for a fix. You can cast your vote [here](https://developercommunity.visualstudio.com/t/unload-event-listeners-are-deprecated-an/10620446).
28+
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](https://developercommunity.visualstudio.com/t/unload-event-listeners-are-deprecated-an/10620446#T-N10754375).
3029

31-
2. **Monitor Chrome and Microsoft Updates**: Stay informed about any updates from Chrome regarding this API deprecation and any potential fixes or workarounds provided by Microsoft.
30+
Barry Pollard, Web Performance Developer Advocate at Google Chrome, also confirmed via tweet [here](https://x.com/tunetheweb/status/1839446168113447372) that no errors will occur when the `unload` event stops firing.
3231

33-
3. **Explore Alternative Event Listeners**: As a proactive measure, explore using alternative event listeners that are not deprecated and can offer similar functionality. Review your application's code to adjust accordingly.
32+
## Solution
3433

35-
4. **Use the Standard ScriptManager Temporarily**: While not a direct solution to the deprecation, switching from RadScriptManager to the standard asp:ScriptManager might offer temporary relief. This change can help isolate the issue to Microsoft's scripts, clarifying the distinction between Telerik and Microsoft's contributions to this problem.
34+
While this change should not introduce errors, we recommend the following steps to ensure your applications run smoothly:
3635

37-
## Suggested Workarounds
38-
Currently, there are no direct workarounds that can completely bypass the deprecated unload event listeners in Chrome. The focus should be on advocating for a fix from Microsoft and adjusting application code to minimize reliance on these deprecated events.
36+
1. **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.
3937

38+
2. **Follow Updates**: Keep track of updates on the [Microsoft Issue Tracker](https://developercommunity.visualstudio.com/t/unload-event-listeners-are-deprecated-an/10620446).
39+
40+
## Suggested Workarounds
41+
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.
4042

4143
## See Also
42-
- [Telerik RadScriptManager Overview](https://docs.telerik.com/devtools/aspnet-ajax/controls/scriptmanager/overview)
4344
- [Chrome Status Feature Deprecation Notice](https://chromestatus.com/feature/5579556305502208)
4445
- [Microsoft Developer Community Issue Tracker](https://developercommunity.visualstudio.com/t/unload-event-listeners-are-deprecated-an/10620446)
46+
- [Barry Pollard post](https://x.com/tunetheweb/status/1839446168113447372)
47+

0 commit comments

Comments
 (0)