r/ProgrammerHumor 3d ago

Meme ancientTools

Post image
5.8k Upvotes

387 comments sorted by

View all comments

973

u/saig22 3d ago

I use vanilla js, document.getElementById() is what I live for.

6

u/romulent 2d ago

If you just wrap document.querySelector() in a little helper function you can do loads with vanilla js. Not perhaps enterprise grade but fine for any home stuff.

1

u/saig22 2d ago

If you do that you may as well use jQuery, the point of vanilla js is to use ultra specialized functions for performances at the cost of verbosity/practicality.

2

u/romulent 2d ago

Why add the extra download weight to your page?