Default js included in Rails
        Posted  
        
            by 
                hizki
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by hizki
        
        
        
        Published on 2011-01-16T13:51:53Z
        Indexed on 
            2011/01/16
            13:53 UTC
        
        
        Read the original article
        Hit count: 310
        
When creating a new Rails application, it is automatically supplied with several quite large js files. In the application layout, by default, all of them are loaded into the page:
<%= javascript_include_tag :defaults %>
I was wondering, isn't loading all those javascripts can make the site possibly mush slower?
And if so, where can I change the definition of :defaults? Or should I just include the ones I need and remove the code line mentioned above?
Thank you
© Stack Overflow or respective owner