Live data from Hacker News

Bootstrap 5 will remove jQuery as a dependency

github.com

51–60 of 333 posts

Re: Bootstrap 5 will remove jQuery as a dependency

#51
post #39

This PR is massive and represents a year and a half of work. If you look at the comments you see there are loads of browser-specific issues being fixed. IE support was dropped as they didn't feel making stuff compatible (jQuery did that for them before). The API is also incompatible; in the words of one dev: "we broke everything". As one of the commenters pointed out, a lot of stuff was copied from jQuery to make it…

There are some nice benefits possible. I don't know if bootstrap actually gets rid of this already, but if you want to enable CSP headers on your website, you have to allow eval for jQuery. Enabling a stricter policy would be great.

Re: Bootstrap 5 will remove jQuery as a dependency

#52

Earlier quoted context omitted.

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

I'm not a big fan of bootstrap but it does a heck of a lot more than just grid layouts. You can't just easily replace the components (modals, accordions, buttons, etc) with CSS grid.

It is not just `display: grid` that is replacing the layout. Now we also have interactive elements in the HTML spec[1] like `` and ``. We also have custom elements making an all in solution like bootstrap less desirable for everything except quick prototyping.

[1]: https://html.spec.whatwg.org/multipage/interactive-elements....

Re: Bootstrap 5 will remove jQuery as a dependency

#53
post #14
post #10

Earlier quoted context omitted.

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.

For one, fetch() doesn’t support progress reporting.

Re: Bootstrap 5 will remove jQuery as a dependency

#54
post #50
post #17

Do you use Bootstrap? If yes, what version? If not, why not? Which alternative do you use?

I build very simple websites, I'm using a tiny bootstrap subset that's sufficient for what I do. My css files average around 400-1100 bytes of unminified css.

Custom Bootstrap builds then?

Re: Bootstrap 5 will remove jQuery as a dependency

#55
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.

fetch is very bleh, so that's not a high bar. What I'd love to see is more Observable-based offerings in that space... RxJS has some rudimentary client, but seeing that pushed further would be great.

Re: Bootstrap 5 will remove jQuery as a dependency

#56
post #38

Earlier quoted context omitted.

Whoosh! Bootstrap is going the way of table layouts. Table layouts were great too but times change. Right now we have CSS Grid and it works in all browsers. I am sure they will bring this goodness to Bootstrap 5 but there is no need for the new layout engine that works great in all useful browsers to have a framework wrapper. Similarly with the jQuery, it was once useful in a table layout kind of way but nowadays you…

> Bootstrap is going the way of table layouts. Table layouts were great too but times change. Right now we have CSS Grid and it works in all browsers. Which is irrelevant, as Bootstrap is much more than a grid system. Not to mention it's not meant for the types to mess with their own custom grid layout anyway.

As a web programmer, I tend to agree with this. While I'm at it, I'd also like to extend a polite "fuck you" to the web industry. It's a horrible place. I like bootstrap and I'm going to use it so fuck. you.

Re: Bootstrap 5 will remove jQuery as a dependency

#57
post #39

This PR is massive and represents a year and a half of work. If you look at the comments you see there are loads of browser-specific issues being fixed. IE support was dropped as they didn't feel making stuff compatible (jQuery did that for them before). The API is also incompatible; in the words of one dev: "we broke everything". As one of the commenters pointed out, a lot of stuff was copied from jQuery to make it…

IE itself is being "dropped" as well, so long term support commitment for new products does not make sense.

You seem to be misinformed. IE11 hasn't been dropped, is supported, and is still the only browser shipping with some versions of Windows as of right now.

Older versions of IE have been dropped. And Edge is still their recommending browsing experience and the only one likely to receive enhancements (both will continue to receive security fixes).

Key Dates:

- Internet Explorer 9: EOL January 12, 2016

- Internet Explorer 10: EOL January 31, 2020

- Internet Explorer 11: EOL Unknown/Unannounced

IE11's EOL date is currently unknown. It would be at minimum 2025 based on Windows 10's current extended support date (but each Windows 10 feature release with IE11 pushes that date back).

Re: Bootstrap 5 will remove jQuery as a dependency

#58
post #17

Do you use Bootstrap? If yes, what version? If not, why not? Which alternative do you use?

I got a WordPress site that has a theme on Bootstrap 3:

https://themeforest.net/item/kleo-pro-community-focused-mult...

Looking around the theme marketplace, it looks like most WordPress themes are still on Bootstrap 3 too. They haven't even upgraded to 3.4 which contains security fixes.

Re: Bootstrap 5 will remove jQuery as a dependency

#59

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)

Whoosh! Bootstrap is going the way of table layouts. Table layouts were great too but times change. Right now we have CSS Grid and it works in all browsers. I am sure they will bring this goodness to Bootstrap 5 but there is no need for the new layout engine that works great in all useful browsers to have a framework wrapper. Similarly with the jQuery, it was once useful in a table layout kind of way but nowadays you…

Too bad html without styling still looks terrible and differently terrible in every browser. My company uses bootstrap heavily and we’ve never used the grid. Bootstrap gives you a great basis on which to build an interface that has all the little details taken care of, and it’s very easy to skin. I’ve worked on projects where people made their own ui component kits to be cool, and they ended up having a lot of holes and incomplete parts. So much work could have been saved by skinning bootstrap.

Note: you can substitute any well done component framework for bootstrap in the above statement.

Re: Bootstrap 5 will remove jQuery as a dependency

#60
post #17

Do you use Bootstrap? If yes, what version? If not, why not? Which alternative do you use?

I like Bootstrap but I tend to use Milligram for most stuff these days. It's an excellent starting point and easy to extend. https://milligram.io

I guess the main difference being that Bootstrap is actively maintained while Milligram hasn't been updated in 2 years.
Post reply on HN