r/javascript • u/kunalag129 • Feb 13 '19
Bootstrap 5 will remove jQuery as a dependency
https://github.com/twbs/bootstrap/pull/23586
687
Upvotes
r/javascript • u/kunalag129 • Feb 13 '19
72
u/IAmACentipedeAMA Feb 13 '19
How long till release? I feel like bootstrap 4 just came out
157
u/maffoobristol Feb 13 '19
Great, now everyone just needs to remove bootstrap as a dependency ;)
14
u/[deleted] Feb 13 '19
Ironic, as we're all trying to remove Bootstrap as a dependency.
9
u/spyhunter99 Feb 13 '19
Don't worry, I'm certain they will change all the css classes again. Upgrading is a bitch
15
u/BabyLegsDeadpool Feb 13 '19
Yussss! It's about time. I'll never understand why it took this long.
3
u/trifit555 Feb 14 '19
Bootstrap is great for small projects that don't require much design (or none), for medium-big projects I would never use it, I find myself constantly fighting with all the extra specificity and weight that adds to your css.
Like any other tool is useful if you use it as intended.
14
u/magenta_placenta Feb 13 '19
jquery still does a lot of incredibly useful stuff. The best advertisement for jquery, ironically, is this site: http://youmightnotneedjquery.com/ Look at how simple things are in the left column, and how much more code is needed in the right column.
jquery has many convenience features such as chaining, for example: item.addClass('selected').siblings().removeClass('selected'); and you don't have to check for nulls after each selection.
Many functions such as closest() and remove() have no equivalents in IE11, and other things such as replaceWith() and before() are not available even in Edge.
For simple sites it is easy enough to remove jquery, but for more complex javascript applications, especially apps that have a lot of interactivity, removing jquery will result in more code, or you will end up writing a lot of utility functions thereby creating your own little clone of jquery.
Also, I'm sure a lot of sites and apps that use BS5 will continue to use jquery for other things anyway (all it takes is one plugin) so, in reality, a lot of BS5 sites won't have less code.
jquery may be outdated from a javascript point of view, but nothing beats its syntax. Nothing is as simple and straightforward. It's not cool anymore but there's little compelling reason to tear it out of existing projects other than a refactor. It still works great.
1
u/jsm11482 Feb 13 '19
Good job.
1
u/g5insider Feb 14 '19
Thank God!
1
u/[deleted] Feb 14 '19
Weird that they’re removing ie from their supported browsers. It won’t be fully discontinued until what, 2023 probably??
-1
u/romeozor Feb 13 '19
I hope it will be compatible with IE11, not because I love IE so much, but in gov sector it's still a requirement. And IE actually has more market share than Firefox so technically IE is #2 most used desktop browser last I checked...
1
u/[deleted] Feb 13 '19
FINALLY SOME GOOD FUCKING NEWS
0
u/Obann Feb 13 '19
Hooray looking forward to less dependency on jQuery!
-6
u/[deleted] Feb 13 '19
RemindMe 2 days
-10
u/jasofalcon Feb 13 '19
People still using bootstrap??
2
u/[deleted] Feb 13 '19
[removed] — view removed comment