Use the `beforeunload` event instead of `unload`
authorAlexander Ebert <ebert@woltlab.com>
Thu, 15 Feb 2024 11:49:01 +0000 (12:49 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 15 Feb 2024 11:49:01 +0000 (12:49 +0100)
commite087e1cd0e7114c050896f05da498290bf7cf7d6
tree46849405f9ccb9f4a2c05f6a6dcb7dc0c50a11a4
parent6e9f1a1b8ae084c85f93505b0caab67adf67fbb9
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