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-alert.js?body=1
view-source:http://0.0.0.0:3000/assets/twitter/bootstrap/bootstrap-alert.js?body=1">

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?

Oh, I think I see. In production ONLY it condenses them all down to a
single file? Just realized now.

On Saturday, February 1, 2014 6:33:07 AM UTC, Bizt wrote:

Oh, I think I see. In production ONLY it condenses them all down to a
single file? Just realized now.

That is the default. If my memory is correct it’s the
config.assets.debug
setting which controls this.

Fred

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs