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
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.
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.
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.
As shown in the docs, the "bundle" includes popper.js for you, the other does not.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With