From f73796b2584e126fa099a406cc5c9835c05dd4ea Mon Sep 17 00:00:00 2001 From: Joe <33972521+hnb-ku@users.noreply.github.com> Date: Fri, 24 Jun 2022 19:23:33 +0800 Subject: [PATCH] FIX: Skip the window load event for now (#17231) --- app/assets/javascripts/discourse/app/app.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/app/assets/javascripts/discourse/app/app.js b/app/assets/javascripts/discourse/app/app.js index be305596c42..3ff0205cccc 100644 --- a/app/assets/javascripts/discourse/app/app.js +++ b/app/assets/javascripts/discourse/app/app.js @@ -82,14 +82,8 @@ const Discourse = Application.extend({ }); }); - window.addEventListener( - "load", - () => { - // The app booted. Remove the splash screen - document.querySelector("#d-splash")?.remove(); - }, - { once: true } - ); + // The app booted. Remove the splash screen + document.querySelector("#d-splash")?.remove(); }, _registerPluginCode(version, code) {