I beseech the gods of Javascript to do something about the ridiculously awful window.onbeforeunload event. It’s a function almost any web app needs, to check for unsaved work, but the implementation is almost like an unfinished afterthought.
— Charles Johnson (@Green_Footballs) July 19, 2021