MagnoliaMayhem@programming.dev to Programming@programming.dev · 11 months agoIs jQuery still the go-to JS helper library?message-squaremessage-square35fedilinkarrow-up170arrow-down12file-text
arrow-up168arrow-down1message-squareIs jQuery still the go-to JS helper library?MagnoliaMayhem@programming.dev to Programming@programming.dev · 11 months agomessage-square35fedilinkfile-text
minus-squaremagnolia_mayhem@lemmy.worldlinkfedilinkarrow-up4·11 months agoI 90% just want easy JSON POST.
minus-squareMax-P@lemmy.max-p.melinkfedilinkarrow-up16·edit-211 months agoYep, that’s definitely covered: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#supplying_request_options If you end up using a bundler and npm dependencies, axios is also pretty good and very popular HTTP client.
minus-squareLord_ToRA@lemmy.worldlinkfedilinkEnglisharrow-up6·edit-211 months agoYeah, Fetch is so much better than jQuery’s http API. And if you need something more than Fetch, then Axios is far superior.
I 90% just want easy JSON POST.
Yep, that’s definitely covered: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#supplying_request_options
If you end up using a bundler and npm dependencies, axios is also pretty good and very popular HTTP client.
Yeah, Fetch is so much better than jQuery’s http API. And if you need something more than Fetch, then Axios is far superior.