Skip to content

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

DEV: Move scripts into theme.html body (#17409)

Jarek Radosz8bf11ae0ce51
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 %>
</body>
- <%- if !@suggested_themes %>
- <%= preload_script "scripts/discourse-test-listen-boot" %>
- <%= preload_script "scripts/discourse-boot" %>
- <%- end %>
</html>