From 8bf11ae0ce5105919f7907b4fc1c20d7999e2a1f Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Sun, 10 Jul 2022 10:52:29 +0200 Subject: [PATCH] DEV: Move scripts into theme.html body (#17409) They were incorrectly placed after the body --- app/views/qunit/theme.html.erb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/views/qunit/theme.html.erb b/app/views/qunit/theme.html.erb index b9e01915269..69a30feafb4 100644 --- a/app/views/qunit/theme.html.erb +++ b/app/views/qunit/theme.html.erb @@ -45,9 +45,10 @@ <%- end %> <%- end %> <%- end %> + + <%- if !@suggested_themes %> + <%= preload_script "scripts/discourse-test-listen-boot" %> + <%= preload_script "scripts/discourse-boot" %> + <%- end %> - <%- if !@suggested_themes %> - <%= preload_script "scripts/discourse-test-listen-boot" %> - <%= preload_script "scripts/discourse-boot" %> - <%- end %>