Live data from Hacker News

Bootstrap 5 will remove jQuery as a dependency

github.com

1–10 of 333 posts

Re: Bootstrap 5 will remove jQuery as a dependency

#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 pain in all of parts of a dev's body as they were 10, 15, and 25 years ago. Even if you "replace" jQuery, you end up just reimplementing easily a half of it just because it's so brilliant in it's ease of use and convenience.

Re: Bootstrap 5 will remove jQuery as a dependency

#8
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)

Re: Bootstrap 5 will remove jQuery as a dependency

#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.
Post reply on HN