Hacker News new | ask | show | jobs
by petre 1497 days ago
Fetch is fine but I'm not going to write document.querySelector every time I have to select some nodes, which happens quite often.
1 comments

That's fine, pretty sure browsers alias $ and $$ to querySelector and querySelectorAll already (although I could be very wrong)

But speaking as someone who writes vanilla by default, it really really isn't as big an issue as you think it is.

I know. Most of its funtionality was superseeded by Js APIs which I already use (Promises vs Deferred, fetch vs. ajax). I might still need an alternative for building and editing query string parameters though. Plus most of the somewhat outdated libs in our project use it anyway.
> pretty sure browsers alias $ and $$ to querySelector and querySelectorAll already (although I could be very wrong)

You are wrong.