Zo72
Zo72

Reputation: 15305

Can I use twitter bootstrap without jquery?

I work in a project where we don't use JQuery.

Is twitter bootstrap dependant on it ?

Upvotes: 107

Views: 74855

Answers (5)

the_spectator
the_spectator

Reputation: 1603

Bootstrap 5 will be without jQuery dependency. Reference: Concerned PR

Upvotes: 7

Dan Bray
Dan Bray

Reputation: 7822

You do not need to use jQuery. Boostrap will perform better with native JavaScript than jQuery.

Try one of these:

  1. Bootstrap Native
  2. Bootstrap Native JavaScript
  3. Vue.js

Upvotes: 2

Bruno Campos
Bruno Campos

Reputation: 2188

Twitter bootstrap itself isn't jQuery dependant.

If you use just the CSS part of it, you won't need jQuery.

If you use the Javascript plugins you need jQuery, since they are jQuery plugins.

v3: http://getbootstrap.com/javascript/

v4: https://getbootstrap.com/docs/4.0/getting-started/javascript/

Upvotes: 99

thednp
thednp

Reputation: 4479

Yes you can via Native Javascript for Bootstrap. Enjoy

Upvotes: 40

tagawa
tagawa

Reputation: 4611

Short answer is yes but as Bruno says, the jQuery plugins won't work. To workaround this, I made a small replacement script so the dropdown menus, alert boxes and collapsible nav bar will work without jQuery: http://daniemon.com/blog/bootstrap-without-jquery/

Upvotes: 42

Related Questions