0

What the best for separated file (every file js : alert.js; slide.js; etc) or combined file (bootstrap.min.js)?

Where I can find to download for the every separated file of bootstrap 3?

john
  • 55
  • 1
  • 1
  • 6

2 Answers2

1

it is much better to use the combined bootstrap.min.js file as it saves bandwidth and performance, but if you need a specific module like alert.js only, it much better to include the modules you will use (in this case you only include the alert.js file). you can find the separate js files in the twitter bootstrap github repo, more specifically you can find them here

omarayad1
  • 34
  • 2
  • hmmm, do separated js is more light than combined js? I mean, in combined js, we not use all of the javascript but in separated js, we can call js if need it. What do you think? – john Jan 09 '14 at 01:15
0

To add to @user3173602's comment, you can use the Customizer to choose which plugins you would like to include, saves you searching them out manually. It will generate a minified and non-minified file for you.

stckrboy
  • 379
  • 10
  • 16
  • hmmm, do separated js is more light than combined js? I mean, in combined js, we not use all of the javascript but in separated js, we can call js if need it. What do you think? – john Jan 09 '14 at 01:30
  • 1 javascript file would mean that you are only sending one request and not multiple requests for multiple files - which will increase the load time of the page slightly. There are a few questions similar to this with some better answers: http://stackoverflow.com/questions/15236767/one-big-javascript-file-or-multiple-smaller-files http://stackoverflow.com/a/8978184/3172872 – stckrboy Jan 09 '14 at 09:52