From ec280913b22e60a5396636893fd9a185c458c54e Mon Sep 17 00:00:00 2001 From: M Smart Date: Tue, 22 Jul 2014 19:46:43 -0400 Subject: [PATCH 1/2] Enumerate deferred scripts with a sprockets helper --- .../common/_discourse_javascript.html.erb | 6 +----- .../deferred_javascripts_helper.rb | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 config/initializers/deferred_javascripts_helper.rb diff --git a/app/views/common/_discourse_javascript.html.erb b/app/views/common/_discourse_javascript.html.erb index ed417bba16b..8b26e916b16 100644 --- a/app/views/common/_discourse_javascript.html.erb +++ b/app/views/common/_discourse_javascript.html.erb @@ -1,11 +1,7 @@