r/webdev • • Feb 13 '19

Bootstrap 5 will remove jQuery as a dependency

https://github.com/twbs/bootstrap/pull/23586
1.5k Upvotes

398 comments sorted by

View all comments

174

u/TechnoEchoes Feb 13 '19

It would be better if they removed popper.js as a dependency. I have a need for jquery on my sites regardless of Bootstrap, but the only reason I use popper.js is because some of the Bootstrap components that depend on it.

0

u/[deleted] Feb 13 '19

[deleted]

82

u/FezVrasta Feb 13 '19

Thanks for the nice words 🤗 I'm so sorry lot of people don't get why Bootstrap needs Popper.js. We should do a better job at explaining it

22

u/1337GameDev Feb 13 '19 edited Jan 24 '25

narrow abounding command crush cooperative fine chief marvelous physical full

This post was mass deleted and anonymized with Redact

6

u/FezVrasta Feb 13 '19

There are a bunch of tickets that need some love, or there's the next branch that has been stuck for a while because I don't have time to work on it. Money can't buy time unfortunately! :-(

0

u/[deleted] Feb 13 '19

[deleted]

2

u/FezVrasta Feb 14 '19

I got a board with the issues that need to be closed to ship v2:

https://github.com/FezVrasta/popper.js/projects/2

There'a also this sticky issue where you can read about its progress:

https://github.com/FezVrasta/popper.js/issues/617

4

u/Salyangoz Feb 13 '19

Im not a frontend dev so stuff like this flies over my head but thank you so fucking much for your contributions. You get to keep backend engineers like me oblivious towards frontend (thus keeping your code clean haha).

Much love.

2

u/TechnoEchoes Feb 13 '19

Thanks for the explanation. Im not too worried about the size of the library, but it's just one more dependency for me to manage. /u/FezVrasta I would love it if Bootstrap came prepackaged with popper.js so I wouldn't have to worry about adding it myself. I don't think I use popper.js for anything other than Bootstrap.

10

u/FezVrasta Feb 13 '19

They do provide a bundle already

59

u/DerKnerd Feb 13 '19

It would be good to remove both. If you still need jQuery include it, but most new projects don't need it or even conflict with it because of other libraries.

13

u/Xpertbot Feb 13 '19

Making a VueJS app, but need to include jQuery and PopperJS because of Bootstrap...

12

u/Catdaemon Feb 13 '19

https://bootstrap-vue.js.org seems alright. I'm using it for a project. The table component at least is good.

→ More replies (3)

1

u/Erebea01 Feb 13 '19

Forgive me if it's a noob question but why not just use grid or flexbox if you don't want jquery or popper or is bootstrap still worth it?

3

u/DerKnerd Feb 13 '19

Bootstrap is more than just the grid. I agree though I create my designs myself since about two years. But not everybody can, either because they lack the knowledge or they lack the time. Or it is forced on them by their company.

1

u/DerKnerd Feb 13 '19

At least Vue.js doesn't die because of jQuery, I had funny experience with React and the old AngularJS

0

u/[deleted] Feb 13 '19

[deleted]

2

u/MungeParty Feb 13 '19

Sure but why would you upgrade bootstrap in that case?

1

u/JBlitzen Feb 13 '19

Haha, you make a good point. I may have jumped the gun there. I’ll delete that comment.

6

u/engwish Feb 13 '19

I think popper.js is necessary. You should look into building your own Bootstrap if you don’t need the components that depends on popper.js.

9

u/there_i_seddit Feb 13 '19

My hunch is that if Jquery is going, BS is moving into the webpack-driven world of 2019. If that's the case, it would be easy enough to conditionally build popper in based on whether you're implementing tooltips (which are a massive pain in the ass without something like it).

5

u/djsacrilicious front-end Feb 13 '19

My thoughts on Bootstrap are biased toward it being a "slap on and walk away" solution, but I can't imagine most of their user base using a webpack/front-end build solution.

4

u/OneTwentyZero Feb 13 '19

What could be a replacement for popper? Isn’t it doing some heavy lifting in the background to work it’s magic?

1

u/spays_marine Feb 13 '19

Doing heavy lifting in the background as opposed to what?

→ More replies (5)

1

u/DrDuPont Feb 13 '19

You don't have to include Popper if you don't need it

Since you do need it, I'm not sure what you're complaining about

→ More replies (1)