r/ProgrammerHumor 2d ago

Meme ancientTools

Post image
5.8k Upvotes

387 comments sorted by

View all comments

Show parent comments

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.

2

u/OldKaleidoscope7 2d ago

That's what jQuery does after querySelector was widely supported. $ = document.querySelector and you can code faster

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?