r/webdev • • Feb 13 '19

Bootstrap 5 will remove jQuery as a dependency

https://github.com/twbs/bootstrap/pull/23586
1.5k Upvotes

398 comments sorted by

View all comments

Show parent comments

4

u/rq60 Feb 19 '19

Since you are incapable of reading, let me repeat this line a few more times for you:

jQuery does’t do anything except improve the developer experience

jQuery does’t do anything except improve the developer experience

jQuery does’t do anything except improve the developer experience

jQuery does’t do anything except improve the developer experience

If those other libraries you're referring to are only for improving developer experience and don't provide other benefits, then yes, don't send them over the wire either.

1

u/joesb Feb 19 '19

So library like axios, lodash, or ES shim should not be used?

Or may be you are just talking out of your ass about jQuery.

3

u/rq60 Feb 19 '19

If you can use fetch instead of axios, then I would consider not using it. axios is meant to be a standardized request library across client and server; so if that holds benefits to you (i.e. code deduplication) then sure, use it.

Most of lodash is not part of browser's standard library yet; even still I would recommend not including the whole library, either use a custom build, directly import methods, or ensure tree-shaking is working for your bundle.

ES5 shim is a shim, so by definition it's to add support where browsers lack. Since you included it in the list it's pretty obvious you don't even understand the argument.

1

u/joesb Feb 20 '19 edited Feb 20 '19

Standardize request across library can be done with your own custom code. And it’s nothing but improving developer experiences.

Shim is nothing but improving developer experience.

That’s no different from jQuery standardizing querySelector and event handling code across browsers.

Or jQuery adding support where some browser lacks like .before(), .closest() method.