diff options
author | Connor Shea <connor.james.shea@gmail.com> | 2016-06-23 19:33:38 +0300 |
---|---|---|
committer | Connor Shea <connor.james.shea@gmail.com> | 2016-06-23 19:33:38 +0300 |
commit | 7ce0968a52a5bc013e49865205a8998881884c02 (patch) | |
tree | aab65a1bb5f4071ba953dc09208d21c4a0ed1121 /app/views/projects/network | |
parent | 8ef649588b396059bccf17e6dab6dec3866b2479 (diff) |
Re-implement page-specific JS in a better way.
This makes larger libraries more cacheable and will allow us to use SRI with the dynamically included libraries.
Diffstat (limited to 'app/views/projects/network')
-rw-r--r-- | app/views/projects/network/show.html.haml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/projects/network/show.html.haml b/app/views/projects/network/show.html.haml index 593af319a47..749afe6b6ab 100644 --- a/app/views/projects/network/show.html.haml +++ b/app/views/projects/network/show.html.haml @@ -1,5 +1,7 @@ - page_title "Network", @ref -- page_specific_javascripts asset_path("network/application.js") +- content_for :page_specific_javascripts do + = javascript_include_tag 'lib/raphael/application.js', {integrity: true, "data-turbolinks-track" => true} + = javascript_include_tag 'network/application.js', {integrity: true, "data-turbolinks-track" => true} = render "projects/commits/head" = render "head" %div{ class: (container_class) } |