Here is a summary of the Hacker News comments in Markdown format:
Positive Sentiment
-
Commenters note that Safari deprecated the unload event a while ago, so this change brings Chrome in line with other browsers.
-
The beforeunload event is still supported for legitimate use cases like unsaved changes.
Negative Sentiment
-
Some skepticism that developers will follow the advice to only use beforeunload minimally.
-
Concern that restricting right click menus has become too common.
Recommended Actions
-
Use beforeunload listeners only when truly needed to avoid hitting performance.
-
Minimize use of beforeunload to help browser performance.
-
Consider impact on user experience before limiting right click menus.
Interesting Links
I lead the Chrome Developer Relations team at Google.
We want people to have the best experience possible on the web without having to install a native app or produce content in a walled garden.
Our team tries to make it easier for developers to build on the web by supporting every Chrome release, creating great content to support developers on web.dev, contributing to MDN, helping to improve browser compatibility, and some of the best developer tools like Lighthouse, Workbox, Squoosh to name just a few.