From c9321cae7fe1b3d005ebe4bfd80fd3b4b42b601b Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 5 Sep 2013 10:41:11 +1000 Subject: [PATCH] Our JS includes belong at the top of the file, that way we can start downloading and parsing them earlier and not wait for the rest of the page Our noscript stuff belongs at the bottom, we should not hold off any js work while noscript is downloading --- .../common/_discourse_javascript.html.erb | 6 --- app/views/layouts/application.html.erb | 42 +++++++++++-------- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/app/views/common/_discourse_javascript.html.erb b/app/views/common/_discourse_javascript.html.erb index e4b4f4d87ca..d9f58b76d46 100644 --- a/app/views/common/_discourse_javascript.html.erb +++ b/app/views/common/_discourse_javascript.html.erb @@ -15,12 +15,6 @@ })(); -<%# load the selected locale before any other scripts %> -<%= javascript_include_tag "locales/#{I18n.locale}" %> -<%= javascript_include_tag "application" %> -<%- if staff? %> - <%= javascript_include_tag "admin"%> -<%- end %>