Bizt
2014-Feb-01 00:12 UTC
twitter-bootstrap-rails Gem adds a LOT of .js files to the page, doesn't it?
Hi, I've installed twitter-bootstrap-rails to my app but when I view the source code I see. <script data-turbolinks-track="true" src="/assets/twitter/bootstrap/bootstrap-transition.js?body=1 <view-source:http://0.0.0.0:3000/assets/twitter/bootstrap/bootstrap-transition.js?body=1>"></script><script data-turbolinks-track="true" src="/assets/twitter/bootstrap/bootstrap-alert.js?body=1 <view-source:http://0.0.0.0:3000/assets/twitter/bootstrap/bootstrap-alert.js?body=1>"></script><script data-turbolinks-track="true" src="/assets/twitter/bootstrap/bootstrap-modal.js?body=1 <view-source:http://0.0.0.0:3000/assets/twitter/bootstrap/bootstrap-modal.js?body=1>"></script><script data-turbolinks-track="true" src="/assets/twitter/bootstrap/bootstrap-dropdown.js?body=1 <view-source:http://0.0.0.0:3000/assets/twitter/bootstrap/bootstrap-dropdown.js?body=1>"></script><script data-turbolinks-track="true" src="/assets/twitter/bootstrap/bootstrap-scrollspy.js?body=1 <view-source:http://0.0.0.0:3000/assets/twitter/bootstrap/bootstrap-scrollspy.js?body=1>"></script><script data-turbolinks-track="true" src="/assets/twitter/bootstrap/bootstrap-tab.js?body=1 <view-source:http://0.0.0.0:3000/assets/twitter/bootstrap/bootstrap-tab.js?body=1>"></script><script data-turbolinks-track="true" src="/assets/twitter/bootstrap/bootstrap-tooltip.js?body=1 <view-source:http://0.0.0.0:3000/assets/twitter/bootstrap/bootstrap-tooltip.js?body=1>"></script><script data-turbolinks-track="true" src="/assets/twitter/bootstrap/bootstrap-popover.js?body=1 <view-source:http://0.0.0.0:3000/assets/twitter/bootstrap/bootstrap-popover.js?body=1>"></script><script data-turbolinks-track="true" src="/assets/twitter/bootstrap/bootstrap-button.js?body=1 <view-source:http://0.0.0.0:3000/assets/twitter/bootstrap/bootstrap-button.js?body=1>"></script><script data-turbolinks-track="true" src="/assets/twitter/bootstrap/bootstrap-collapse.js?body=1 <view-source:http://0.0.0.0:3000/assets/twitter/bootstrap/bootstrap-collapse.js?body=1>"></script><script data-turbolinks-track="true" src="/assets/twitter/bootstrap/bootstrap-carousel.js?body=1 <view-source:http://0.0.0.0:3000/assets/twitter/bootstrap/bootstrap-carousel.js?body=1>"></script><script data-turbolinks-track="true" src="/assets/twitter/bootstrap/bootstrap-typeahead.js?body=1 <view-source:http://0.0.0.0:3000/assets/twitter/bootstrap/bootstrap-typeahead.js?body=1>"></script><script data-turbolinks-track="true" src="/assets/twitter/bootstrap/bootstrap-affix.js?body=1 <view-source:http://0.0.0.0:3000/assets/twitter/bootstrap/bootstrap-affix.js?body=1>"></script> Is there something about rails assets in that it condenses all these together in a single file to improve performance (fewer files to download). Why is this not happening here? Shouldn't it be, or have I not set something? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/34e2f302-b909-40e7-9c2e-08f0a219cf3a%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.