Skip to content

Commit

Permalink
Load javascript asynchronously in production
Browse files Browse the repository at this point in the history
  • Loading branch information
eliotjordan committed Jan 25, 2018
1 parent a068866 commit 1eac234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<%= favicon_link_tag 'favicon.ico' %>
<%= stylesheet_link_tag "application", media: "all" %>
<%= stylesheet_link_tag "print", media: "print" %>
<%= javascript_include_tag "application" %>
<%= javascript_include_tag "application", async: Rails.env.production? %>
<%= csrf_meta_tags %>
<%= content_for(:head) %>

Expand Down

0 comments on commit 1eac234

Please sign in to comment.