News for hackers. Stuff that matters.
Re:Bootstrap 5 will remove jQuery as a dependency by alerighi on Tuesday February 12, 2019 @06:23PM (#19148751)
A thing I always didn't like of Bootstrap is that it requires you to load a full version of jQuery just to use it. Maybe I don't need the whole jQuery, because I use another framework, or because I have a very simple site that doesn't require any JavaScript at all.

The thing is that when Bootstrap first launched everyone was using jQuery, so it was a de facto standard, everyone already had it, so requiring it as a dependency was not an issue at all, now we are moving towards different web technologies and practically nobody is using jQuery, and having to load it just a dependency to Bootstrap is not good, considering that it will slow down the loading of the page and consume traffic for mobile users.

Re:Bootstrap 5 will remove jQuery as a dependency by Carpetsmoker on Tuesday February 12, 2019 @07:16PM (#19149107)
> A thing I always didn't like of Bootstrap is that it requires you to load a full version of jQuery just to use it.

You can just use the CSS and ignore the JavaScript parts, or write your own JS to build the CSS, which is what I did (twice, at the different jobs).

I never liked the Bootstrap JavaScript for a host of reasons. Unfortunately this incompatible rewrite fixes exactly nothing of that.

Re:Bootstrap 5 will remove jQuery as a dependency by martin_a on Wednesday February 13, 2019 @03:24AM (#19151414)
> practically nobody is using jQuery

Well, yeah, no: https://trends.builtwith.com/javascript/jQuery

Re:Bootstrap 5 will remove jQuery as a dependency by colejohnson66 on Tuesday February 12, 2019 @06:37PM (#19148850)
Well, technically, it uses jQuery’s “slim” build which omits some features such as AJAX, but yes. You do have to pull in all of jQuery’s slim build to run it