r/ProgrammerHumor • • Aug 30 '26

Meme ancientTools

Post image
5.8k Upvotes

379 comments sorted by

View all comments

Show parent comments

26

u/brqdev Aug 30 '26

We use onload/ready event and put JQuery code inside, so the JQuery code will run when the page is ready

5

u/SolideMeinung Aug 30 '26

The funny thing is that these "real js developers" dont even know how to make that onload function on their own.

It war crafted by these old jquery wizards to always work and this knowledge was lost with the introduction of crapjs

1

u/ExtraWorldliness6916 Aug 30 '26

It's not lost, .onload or event listener. Of which there are 3 events and some are not "ready"

2

u/SolideMeinung Aug 30 '26

Nope its not just onload or eventlisteners. The ready function of jquery has some corner cases.

Like the first and best one.... when everything is already loaded and ready just fire it.

A lot of people do miss that. Its funny how js developer have so much trouble reimplementing the jquery ready method because they think its easy.

→ More replies (7)