Live data from Hacker News

Bootstrap 5 will remove jQuery as a dependency

github.com

111–120 of 333 posts

Re: Bootstrap 5 will remove jQuery as a dependency

#111
post #107

I have no idea how to do anything without jquery.

This is a great opportunity to learn! http://youmightnotneedjquery.com/ is a great resource: Type in what you want to do (for example, `next` or `AJAX`) and it shows the jQuery code you might have used along with a vanilla JavaScript way to accomplish it.

Re: Bootstrap 5 will remove jQuery as a dependency

#112

This is funny. I was thinking that Bootstrap should be suffering the same fate as jquery. That is, it’s relevance should be decreasing as web technology catches on. I see no reason for using a third party layout system now that CSS has `display: flex;` and `display: grid;`. As for modals and menus, HTML has ` ` and ` `. And for reusable components, we have custom elements, that you can either implement your self (not…

dialog is not supported in either Edge or Safari, it's not exactly drop-in though

Re: Bootstrap 5 will remove jQuery as a dependency

#113
post #2

Which will be ready for February 2022

Oh no! Some of my sites are still using bootstrap v3! I have so many bootstrap service packs to install, thanks for the heads up.

You are being snarky, but hopefully you have installed your Bootstrap Service Packs or at least have checked that you are not affected by some of the XSS issues in versions https://snyk.io/test/npm/bootstrap/3.3.7?severity=high&sever...

Re: Bootstrap 5 will remove jQuery as a dependency

#114

This is funny. I was thinking that Bootstrap should be suffering the same fate as jquery. That is, it’s relevance should be decreasing as web technology catches on. I see no reason for using a third party layout system now that CSS has `display: flex;` and `display: grid;`. As for modals and menus, HTML has ` ` and ` `. And for reusable components, we have custom elements, that you can either implement your self (not…

Depends entirely on the application.

If your application has many basic views, you'll be wasting time writing out CSS grid properties for a basic responsive layout.

I mean, at some point you'll recognize you're reinventing the wheel and just pull in a CSS grid from a framework.

This applies to basically any components that has been battle tested in Bootstrap.

Re: Bootstrap 5 will remove jQuery as a dependency

#116
post #17

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

I use bootstrap, sometimes v3 sometimes v4 depending on the project. I don't use any of the layout aids, but I enjoy its default styling of HTML elements. Which is also why this PR doesn't concern me because I don't use the JS parts of Bootstrap.

Re: Bootstrap 5 will remove jQuery as a dependency

#117

This is funny. I was thinking that Bootstrap should be suffering the same fate as jquery. That is, it’s relevance should be decreasing as web technology catches on. I see no reason for using a third party layout system now that CSS has `display: flex;` and `display: grid;`. As for modals and menus, HTML has ` ` and ` `. And for reusable components, we have custom elements, that you can either implement your self (not…

dialog is not supported in either Edge or Safari, it's not exactly drop-in though

Neither was `document.querySelector` or `Element.prototype.closest` a few years back. It didn’t stop people from abandoning jquery in favor of the native APIs and just polyfilling the browers that were lacking the support.

Re: Bootstrap 5 will remove jQuery as a dependency

#119

Earlier quoted context omitted.

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 Explore…

IE 11 is not a browser. It is a compatibility solution.

Re: Bootstrap 5 will remove jQuery as a dependency

#120
post #10

Earlier quoted context omitted.

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

I've always liked to use axios which provides a jQuery-ish AJAX library. Works in the browser and server-side with NodeJS. https://github.com/axios/axios Much nicer to use than fetch IMHO

This.
Post reply on HN