DEV Community

Discussion on: Why is there such profound and intense hatred towards jQuery in the WebDev world?

Collapse
 
prahladyeri profile image
Prahlad Yeri

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.

Collapse
 
rhymes profile image
rhymes • Edited

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 :)