ruby on rails - Optimal order of csrf_meta_tag? -
in rails, understanding try put stylesheets before javascript, , javascript near end of document allow dom fire faster.
here's question - tags go optimum performance? question specific rails' csrf_meta_tag
. @ moment, have random assortment of orders - tag above css/js, in middle, below both. insight on appreciated.
just try keep code clean dry. put csss, javascript , meta tag. next way:
<%= stylesheet_link_tag ... %> <%= javascript_include_tag ... %> <%= csrf_meta_tag %>
Comments
Post a Comment