Thanks for mentioning document.querySelectorAll.bind, I didn't knew about that!
And window.fetch isn't a drop-in replacement for jquery's $.post() or $.get(), it has slightly different behaviors - it doesn't store cookies, so can't work with authentication for example. There is also the fact that it won't on some older browsers like pre IE9.
And window.fetch isn't a drop-in replacement for jquery's $.post() or $.get(), it has slightly different behaviors
But who said it should be a "drop in replacement" ? I don't like fetch that much but there should be no assumption that its API should be like jQuery, for what reason? They are different projects.
it doesn't store cookies, so can't work with authentication for example.
This isn't true, by default fetch sends auth headers and cookies for the same origin, if you're looking for cross origin support, just specify credentials: include
There is also the fact that it won't on some older browsers like pre IE9.
If what you're after is support for older browsers jQuery might make sense, it's just that your argument is as one sided as the one of the people you're citing in your post :)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for mentioning
document.querySelectorAll.bind
, I didn't knew about that!And
window.fetch
isn't a drop-in replacement for jquery's$.post()
or$.get()
, it has slightly different behaviors - it doesn't store cookies, so can't work with authentication for example. There is also the fact that it won't on some older browsers like pre IE9.But who said it should be a "drop in replacement" ? I don't like
fetch
that much but there should be no assumption that its API should be like jQuery, for what reason? They are different projects.This isn't true, by default fetch sends auth headers and cookies for the same origin, if you're looking for cross origin support, just specify
credentials: include
If what you're after is support for older browsers jQuery might make sense, it's just that your argument is as one sided as the one of the people you're citing in your post :)