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

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -