"Gustavo de Sá Carvalho Honorato" <gustavohonorato wrote in post 
#967389:
> On Wed, Dec 8, 2010 at 10:19 PM, Marnen Laibow-Koser
> <li...@ruby-forum.com> wrote:
>> It's normally bad practice to use :all anyway. Just include the JS you
>> need on that particular page.
>>
>
> But in this Scalling Rails tutorial
> (http://railslab.newrelic.com/2009/01/22/page-responsiveness), they
> recommend to use :all in production systems to reduce page
> responsiveness. They said that in production enviroments when you use
> "javascript_include_tag :all", Rails automatically wraps all
> javascript files in just one minified file, reducing the total
> javascript size and the overhead of multiples GET request.

Apparently you don't need :all for that.  Look at the third syntax.

You don't usually need all your JS on every page.

Best,
-- 
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org

Sent from my iPhone

-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to