Slightly defer the initialization but not loading of CKEditor
authorAlexander Ebert <ebert@woltlab.com>
Wed, 26 Jul 2023 15:50:10 +0000 (17:50 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 26 Jul 2023 15:50:10 +0000 (17:50 +0200)
commit4cc1656a60e49a7aadd81b637a0d7a366a45feaf
tree162dfd160e8db65bda217c76372ef73ec2bfa3de
parent46811e2820b0be2ecbc194a3c5bac1419e6c2cb1
Slightly defer the initialization but not loading of CKEditor

This change improves the perceived performance by forcing the browser to insert a rendering pass before initializing the browser. In particular on mobile devices this creates an opportunity to refresh the screen.
ts/WoltLabSuite/Core/Component/Ckeditor.ts
wcfsetup/install/files/js/WoltLabSuite/Core/Component/Ckeditor.js