Home > Mobile >  for making boostrap cdn work, do I need also the javascript cdn or only css, or all 3?
for making boostrap cdn work, do I need also the javascript cdn or only css, or all 3?

Time:08-25

which one do I need to use? enter image description here

I want to use buttons styling, grid, card (and maybe dropdown but in the future)

<!-- which one? -->

https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css

https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js

https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js

CodePudding user response:

TLDR: if you want basic styling, use a CSS-only file.

if you need interactivity then use also javascript

  • CSS is mandatory
  • JS is optional

I suggest seeing the official docs enter image description here

CodePudding user response:

If you are planning to use dropdowns, poppers and tooltips, use all. If you only need styles use bootstrap.min.css only.

  • Related