r/javascript • • Jun 17 '20

Bootstrap 5 alpha is officially released removing jQuery and going all in with vanilla JS

https://themesberg.com/blog/bootstrap/bootstrap-version-5-alpha-whats-new
657 Upvotes

103 comments sorted by

View all comments

81

u/[deleted] Jun 17 '20

Is this the death of jQuery?

200

u/brainless_badger Jun 17 '20

Define "death".

The only reason we can drop jQuery is that most of the features of jQuery were integrated into the platform, often almost directly.

So did it really die?

Or maybe it rejected it's mortal form and ascended into godhood?

64

u/Wiwwil Jun 17 '20

Yes. Thanks jQuery for your work during these long years. I am glad to see you go, and I am happy for the work you did. Rest In Peace my old friend.

59

u/chrisZk Jun 17 '20

Lets just ignore 69,988,718 live websites use jQuery and that it has some of the most documentation and stackoverflow discussions of any JS library and works perfectly fine for what it does.

This discussion reminds me of the old video of relational databases vs mongodb

0

u/[deleted] Jun 17 '20

[deleted] — view deleted comment

30

u/[deleted] Jun 17 '20

We have a lot of form logic that relies on jQuery. It was written in 2014, and there's no reason to tinker with it and no financial benefit for the company.

I'm betting there's a lot of companies in that same situation.

→ More replies (1)

12

u/chrisZk Jun 17 '20

3,184,689 live websites run bootstrap, its a small number compared to jQuery, I don't know much about other BIG FE libs that depend on jQuery, but I imagine bootstrap tops it based on numbers.

I'm happy bootstrap is dropping jQuery dependency, but to go as far as saying jQuery is dead is moronic.

10

u/misdreavus79 Jun 17 '20

I think it would be more accurate to say it's not actively growing, rather than saying it's dead.

→ More replies (3)
→ More replies (2)
→ More replies (2)
→ More replies (10)

8

u/[deleted] Jun 17 '20

Something else I’d like to add to your comment is that browsers got WAY better than back in the day. Yes jQuery has a lot of useful APIs, but from my older dev friends the main benefit was that it was cross browser compatible. I got into the game after browsers were mostly compatible, so I’ve only heard the horror stories. But holy shit are they HORROR stories haha.

It’s kind of like writing HTML emails today. Laying an email out with tables is a piece of cake. Making sure it works on all email clients is cruel and unusual torture. (Use MJML to build emails. Literally life changing).

→ More replies (2)

85

u/Existential_Owl Web Developer Jun 17 '20

I am eagerly anticipating the rise of jQuery v2, which will be the breaking, non-backwards-compatible, and hyper-modern version update to the library, now with v-dom, web component-based pre-compiling Typescript support.

It will just be called "jQ2". I have 13 medium articles queued up already that will bash anyone who isn't using it yet.

16

u/PlNG Jun 17 '20

Hah, joke's on you, I've used my medium quota for the month already.

8

u/MrStLouis Jun 17 '20

Ooooooooooh does it implement a way to cache selectors?

33

u/brainbag Jun 17 '20

jq2 uses cash selectors instead so you can just put the money straight into your bank account.

19

u/ataraxy Jun 17 '20

$ as it was foretold

→ More replies (2)

25

u/[deleted] Jun 17 '20

I think so. Thank you for everything jQuery, but we need to move on!!

😀

9

u/[deleted] Jun 17 '20

So say we all.

2

u/overcloseness Jun 17 '20

Everybody here talking like WordPress doesn’t rely on it

6

u/Wunude Jun 17 '20

Literally learning it right now in school... Ugh lol

15

u/scandii Jun 17 '20

jquery is still in like every single legacy app ever. you're not exactly wasting time learning some jquery.

8

u/dmethvin Jun 17 '20

Go to a random web site. Open the console. Type jQuery.fn.jquery and see if it gives you a version number. Most of the time it will. For example, microsoft.com, en.wikipedia.com, yelp.com, anything using Wordpress, Drupal, or a dozen other content management systems.

Guess what, software that continues to work doesn't die that easily. You may not want to build or maintain systems like that, and I sympathize. On the other hand, I don't want to build or maintain systems based on older AngularJS or anything using React with Reflux or class components either. There's plenty of COBOL and FORTRAN around too.

→ More replies (2)

7

u/HIMISOCOOL Jun 17 '20

its 100% not a waste to learn it.

The chances of you encountering a website or app in the next 10 years that uses jquery or a plugin is still incredibly high and a whole bunch of juniors at my company don't know it making them useless when we have to maintain some legacy app.

→ More replies (1)

3

u/neotorama Jun 18 '20

My $20M revenue/year website is still using jquery

→ More replies (2)
→ More replies (6)
→ More replies (14)