Can 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?
Bootstrap 5 will remove jQuery as a dependency
31–40 of 333 posts
Re: Bootstrap 5 will remove jQuery as a dependency
#32Can 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?
Re: Bootstrap 5 will remove jQuery as a dependency
#33This 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)
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 might as well just write ES6 javascript rather than learn how to do things the special jQuery way. Frameworks are dead in a similar way to how the internal combustion engine is.
Using the intrinsic properties of the browser is where it is at in the same way that electric is where it is at in the automotive world. The fact that everyone is stuck with their excuses for frameworks (and ICE engines) does not change matters. Hence I read this news with all the enthusiasm of a Tesla owner reading about Peugeot developing a more efficient diesel engine.
Re: Bootstrap 5 will remove jQuery as a dependency
#34Earlier quoted context omitted.
I know you're sarcastic but Bootstrap has been picking up steam recently. The jQuery removal has been in the work since 2017. If you want faster releases then feel free to submit PRs :)
Really? I'd have guessed bootstrap will be phased out completely by CSS grid, which does essentially what bootstrap does...
Re: Bootstrap 5 will remove jQuery as a dependency
#35> 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…
You replace direct usage with indirection (adapter) that still calls jQuery, ensure everything still works, then swap out the indirection's implementation (e.g. with native DOM functions), and ensure everything still works.
The pattern specifically just decouples the callsite from implementation.
Re: Bootstrap 5 will remove jQuery as a dependency
#36Do you use Bootstrap? If yes, what version? If not, why not? Which alternative do you use?
Re: Bootstrap 5 will remove jQuery as a dependency
#37Earlier quoted context omitted.
I know you're sarcastic but Bootstrap has been picking up steam recently. The jQuery removal has been in the work since 2017. If you want faster releases then feel free to submit PRs :)
Really? I'd have guessed bootstrap will be phased out completely by CSS grid, which does essentially what bootstrap does...
Re: Bootstrap 5 will remove jQuery as a dependency
#38This 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…
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.
Re: Bootstrap 5 will remove jQuery as a dependency
#39The 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 work.
In other words, this entire effort seems of dubious benefit to me. Whereas before it was "jQuery for EVERYTHING", now it seems to be the reverse: "remove jQuery from EVERYTHING", which is equally silly. jQuery does a lot of useful stuff, and al things considered remains a pretty neat project. It shouldn't be used for everything, but spending loads of time in removing it just because it's no longer the kwel fr4m3wr0k of teh week just seems like a waste of effort.
Re: Bootstrap 5 will remove jQuery as a dependency
#40Earlier 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.