Use the `beforeunload` event instead of `unload`
authorAlexander Ebert <ebert@woltlab.com>
Thu, 15 Feb 2024 11:49:01 +0000 (12:49 +0100)
committerOlaf Braun <info@braun-development.de>
Thu, 7 Mar 2024 15:37:00 +0000 (16:37 +0100)
commitb231b75d9d6d35cec7ba7faf712cb09478ebc410
treeffe329d2fce1e2c9f1d2c329caf52bea0ff33c85
parent1ef5b9e2981da936b392c5d9eff854f47a481c9a
Use the `beforeunload` event instead of `unload`

It pretty much does the same, but does not trigger a pointless warning in PageSpeed insights.

See https://www.woltlab.com/community/thread/304788-page-speed-insights-optimierung-2024/
ts/WoltLabSuite/Core/Ajax/Backend.ts
wcfsetup/install/files/js/WCF.Message.js
wcfsetup/install/files/js/WoltLabSuite/Core/Ajax/Backend.js