Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap 4 - "Complete JavaScript" vs "Complete JavaScript Bundle"

What am I missing? The examples use min.js. The bundle.min.js has more code, but I can't find a description of that extra code...

https://getbootstrap.com/docs/4.0/getting-started/download/

Code:

https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js vs https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.bundle.min.js

like image 475
Michael Cole Avatar asked Feb 09 '18 19:02

Michael Cole


People also ask

What is the difference between bootstrap js and bootstrap bundle js?

Both are same but bundle has other js included in it like popper. js whereas, bootstrap. min. js only have the minimal js which is required to run the bootstrap.

What is JavaScript bundle?

JavaScript bundling is an optimization technique you can use to reduce the number of server requests for JavaScript files. Bundling accomplishes this by merging multiple JavaScript files together into one file to reduce the number of page requests.

Does bootstrap 4 require Popper js?

However, Bootstrap 4 can be used without Popper. js, if we don't use tooltips, popovers nor dropdowns. For example, navbar's JS functionality (mobile menu on the right) works well without Popper. js.


1 Answers

As shown in the docs, the "bundle" includes popper.js for you, the other does not.

enter image description here

like image 109
Zim Avatar answered Sep 21 '22 08:09

Zim