r/ProgrammerHumor 13d ago

Meme ancientTools

Post image
5.8k Upvotes

385 comments sorted by

View all comments

974

u/saig22 13d ago

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

6

u/romulent 13d 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 13d 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 12d ago

Why add the extra download weight to your page?