What is the consequential difference between adding
//= require bootstrap-sprockets
and
//= require bootstrap
to application.js?
The documentation says:
bootstrap-sprockets provides individual Bootstrap Javascript files (alert.js or dropdown.js, for example), while bootstrap provides a concatenated file containing all Bootstrap Javascripts
Does one offer better performance over the other, or something?
Require bootstrap
over bootstrap-sprockets
for faster compilation.
Require bootstrap-sprockets
over bootstrap
for ease of debugging.
While
bootstrap-sprockets
provides individual Bootstrap components for ease of debugging, you may alternatively require the concatenatedbootstrap
for faster compilation