4 ms·
Fetch is fine but I'm not going to write document.querySelector every time I have to select some nodes, which happens quite often.
by petre 4y 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.
- julianlam 4y agoThat'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.
- petre 4y agoI 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.
- pwdisswordfish9 4y ago> pretty sure browsers alias $ and $$ to querySelector and querySelectorAll already (although I could be very wrong) You are wrong.
- deleted 4y ago[deleted]