Skip to content

Commit

Permalink
Remove redundant js-enabled script and move main script at the bottom…
Browse files Browse the repository at this point in the history
… of the page
  • Loading branch information
alex-ju authored and maxgds committed Feb 12, 2020
1 parent 14b4b56 commit b53f161
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= stylesheet_link_tag 'print', media: 'print' %>
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>

<link rel="shortcut icon" href="<%= asset_path 'favicon.ico' %>" type="image/x-icon" />
<link rel="mask-icon" href="<%= asset_path 'govuk-mask-icon.svg' %>" color="#0b0c0c">
Expand Down Expand Up @@ -430,9 +429,7 @@
}
} %>
<% end %>
<%# if no GOVUK-namespaced module has loaded we can assume JS has failed and remove the class %>
<script>if (typeof window.GOVUK === 'undefined') document.body.className = document.body.className.replace('js-enabled', '');</script>
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
</body>
</html>
<!-- Thanks Martha -->

0 comments on commit b53f161

Please sign in to comment.