Bootstrap: [feat][question] jQuery free version

Created on 15 Mar 2017  路  4Comments  路  Source: twbs/bootstrap

Hi! I wondering if you have plans for release a jQuery free version of Bootstrap. I search for this, but did not find anything about it. I know it's been a lifetime together, but all the good things comes to an end, and that's not bad. I guess web just had evolved in something that doesn't need jQuery.

There are several CSS frameworks that relays on jQuery, but this is the biggest, if this start to ship a jQuery free version, I bet that others would also consider this as well.

This would made integration with other JS frameworks and libraries more lightweight and straightforward.

Anyhow, just wondering, if this is a duplicate, I'm really sorry, I try my best to find something about this, I guess it's not easy topic to search about.

js v4

Most helpful comment

Since Bootstrap 4 now only supports IE 10+ it might be a good idea to switch to vanilla JavaScript.

All 4 comments

@michaeljota It's my understanding such an approach would lead to browser inconsistencies and a slew of bugs, making Bootstrap less accessible. They did switch to jQuery lite in Boostrap 4 and are using tether in replacement for what might otherwise be a jQuery plug-in, so that's a good step in the right direction.

If you're only supporting modern browsers you may want to look at a CSS microframework like Bulma and roll your own JS. To get a feel for what the JavaScript might start to look like if you wanted to roll vanilla and support older browsers, check out the PhotoSwipe example code.

Otherwise, if you're trying to improve performance for mobile, you may want to look at how to load Bootstrap dependencies asynchronously.

Since Bootstrap 4 now only supports IE 10+ it might be a good idea to switch to vanilla JavaScript.

This isn't something we'll be doing at this stage in v4 development (when we're working on shipping betas). We'll look at this again when v5 swings around.

YOU MIGHT NOT NEED JQUERY

http://youmightnotneedjquery.com/

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iklementiev picture iklementiev  路  3Comments

ghost picture ghost  路  3Comments

ziyi2 picture ziyi2  路  3Comments

alvarotrigo picture alvarotrigo  路  3Comments

athimannil picture athimannil  路  3Comments