diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 5fbcc741379..a64d8997c3d 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -57,7 +57,7 @@
<%= tag.meta id: 'data-discourse-setup', data: client_side_setup_data %>
<%- if !current_user && flash[:authentication_data] %>
-
+
<%= preload_script "authentication-complete" %>
<%- end %>