Monday, October 15, 2012

[Rails] Rails 3 - how to defer parsing of JavaScript

I am trying to optimize my website and one of the suggestions I got was
to defer parsing of JavaScript. I have googled it for a couple of hours
but I haven't come across an elegant solution to do this in Rails 3. I
am using the standard

<%= javascript_include_tag :application -%>

tag in my code, just before the closing head tag. Does anybody know a
relatively simple way to defer the loading of all the Javascript of the
application.js file? Thanks.

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate