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.
Bootstrap 5 will remove jQuery as a dependency
41–50 of 333 posts
Re: Bootstrap 5 will remove jQuery as a dependency
#42Can someone explain why if you like jquery and you're used to it why is it a bad idea or it's not but just personal preference at this point?
Obviously, if jQuery is still your jam in 2019, that's your decision and no one is going to force you to stop using it. The approach Bootstrap is taking is interestingly backwards compatible in that the updated plugins will still register their previous jQuery APIs, even if their actual implementations will now be "vanilla" JS directly against the modern browser APIs.
Re: Bootstrap 5 will remove jQuery as a dependency
#43This 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…
Re: Bootstrap 5 will remove jQuery as a dependency
#44This 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…
Re: Bootstrap 5 will remove jQuery as a dependency
#45Re: Bootstrap 5 will remove jQuery as a dependency
#46What do they replace it with?
Re: Bootstrap 5 will remove jQuery as a dependency
#47Can someone explain why if you like jquery and you're used to it why is it a bad idea or it's not but just personal preference at this point?
If you're making an SPA, then jQuery is a bad choice for many reasons. jQuery is just a DOM wrapper, and doesn't give you any application structure, which tends to lead to pretty messy applications.
Re: Bootstrap 5 will remove jQuery as a dependency
#48This 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…
One less dependency, network request and more efficient code is always worth the effort.
Oh, and since the new code is vanilla and written in ES6 (it was already but transpiled) you can use modules/tree shaking, even better for performance.
Re: Bootstrap 5 will remove jQuery as a dependency
#49This 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…
Re: Bootstrap 5 will remove jQuery as a dependency
#50Do you use Bootstrap? If yes, what version? If not, why not? Which alternative do you use?