Live data from Hacker News

Bootstrap 5 will remove jQuery as a dependency

github.com

11–20 of 333 posts

Re: Bootstrap 5 will remove jQuery as a dependency

#11
post #5
post #2

Which will be ready for February 2022

And Bootstrap 4 will be declared eol so you get no more bugfixes until the bootstrap 5 release. I hope they wont do the same mistake again.

Bootstrap 3 got an update last year, and it is already years old. It may have taken a while but at least it got _something_.

Re: Bootstrap 5 will remove jQuery as a dependency

#14
post #10

This is great! This will make bootstrap more attractive and competitive as a framework. JQuery was one of the most important frameworks in Javascript history. It has enabled us to built real webapps. However since then differences between browsers shrunk significantly and we learned how to build maintainable and scalable apps in a more declarative fashion (hello React, Angular and friends)

I am still more fond of jQuery's ajax functionality than anything that followed, including the fetch API.

Why? fetch returns a native promise, which are _much much much_ nicer to work with than XHR ever was or desired to be.

Good riddance.

Re: Bootstrap 5 will remove jQuery as a dependency

#16
post #9
post #2

Which will be ready for February 2022

I know you're sarcastic but Bootstrap has been picking up steam recently. The jQuery removal has been in the work since 2017. If you want faster releases then feel free to submit PRs :)

Really? I'd have guessed bootstrap will be phased out completely by CSS grid, which does essentially what bootstrap does...

Re: Bootstrap 5 will remove jQuery as a dependency

#18
post #6

> Bootstrap 5 will remove jQuery as a dependency ... by copying over/rebuilding big chunks of it. - $(element).closest(`.${ClassName.ALERT}`)[0] + SelectorEngine.closest(element, `.${ClassName.ALERT}`) - $.Event(Event.CLOSE) + EventHandler.trigger(element, Event.CLOSE) - $(element).one( ... ) + EventHandler.one( ... ) - $(this).data(DATA_KEY) + Data.getData(this, DATA_KEY) And so on and so forth. DOM APIs are just as…

Yes...What were you expecting then to do? Usually you replace code if you're dropping a dependency. It's one less network request, saves bandwidth and removes obsolete and pretty much unmaintained code (at this point, the jQuery github is as good as dead, unlikely to see major releases any time soon).

Seems to be a sensible approach to me. It's like using native code rather than electron, even if you add more lines, I'm pretty sure the performance gains would be worth while.

Re: Bootstrap 5 will remove jQuery as a dependency

#19
post #9

Earlier quoted context omitted.

I know you're sarcastic but Bootstrap has been picking up steam recently. The jQuery removal has been in the work since 2017. If you want faster releases then feel free to submit PRs :)

Really? I'd have guessed bootstrap will be phased out completely by CSS grid, which does essentially what bootstrap does...

Right - so you get all the functionality of bootstrap using CSS grid; all the modals, spinners, buttons, and most importantly: browser bug fixes and quirks people contribute over time.

Bootstrap is a _framework_, not just a layout system.

Also, BS uses Flexbox at the moment, I doubt they'll go to grid any time soon.

Re: Bootstrap 5 will remove jQuery as a dependency

#20
post #9

Earlier quoted context omitted.

I know you're sarcastic but Bootstrap has been picking up steam recently. The jQuery removal has been in the work since 2017. If you want faster releases then feel free to submit PRs :)

Really? I'd have guessed bootstrap will be phased out completely by CSS grid, which does essentially what bootstrap does...

Huh? You do realize that the layout utils are but a small part of what Bootstrap has to offer, right?
Post reply on HN