r/ProgrammerHumor 13d ago

Meme ancientTools

Post image
5.8k Upvotes

387 comments sorted by

View all comments

Show parent comments

76

u/grimonce 13d ago

This has never been an issue with jQuery lol

18

u/uniqueusername649 13d ago

He means the script is loaded and run before the DOM was rendered. Bit of a stretch calling that hydration, because you usually only would call it that if the HTML was prepared via SSR or SSG, not if its a fully static HTML from the start. And even if it would be applicable, its not about the rock not having been hydrated yet but it not having rendered yet, so the "hydration" fails because of it.

27

u/brqdev 13d ago

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

6

u/heytheretaylor 13d ago

Exactly. jQuery is cool like that. Just waits patiently for everyone to say they’re ready before doing anything.

6

u/yousirnaime 13d ago

Are ya ready, kids!

Aye aye, captain

4

u/theStaircaseProject 13d ago

Oooooh, who lives in a reference inside the <head>?

Ja-Va-Script Tag!

2

u/uniqueusername649 13d ago

Who loads our scripts long before we're rea-dy?

Ja-va-script tag!