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) { diff --git a/app/views/common/_discourse_splash.html.erb b/app/views/common/_discourse_splash.html.erb index 993634f3bae..5e6fe84ea01 100644 --- a/app/views/common/_discourse_splash.html.erb +++ b/app/views/common/_discourse_splash.html.erb @@ -3,7 +3,7 @@ - <%- end %>