Skip to content

A platform for community discussion. Free, open, simple.

FIX: Skip the window load event for now (#17231)

Joef73796b2584e
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) {