5 ms·
What does Hacker News recommend as a standalone AJAX solution nowadays?
by maxhowell 13y ago
What does Hacker News recommend as a standalone AJAX solution nowadays?
- grey-area 13y agoNot sure if it is a complete replacement, but I needed to remove a dependency on jquery recently and used this code: https://github.com/inkling/backbone.native/blob/master/backbone.native.js https://github.com/inkling/backbone.native/blob/master/backb... The $.ajax function was all I needed.
- jonahx 13y agoJust using the native XMLHttpRequest has pretty good support: http://en.wikipedia.org/wiki/XMLHttpRequest#History_and_support http://en.wikipedia.org/wiki/XMLHttpRequest#History_and_supp...
- jenius 13y agoI've used superagent (https://github.com/visionmedia/superagent https://github.com/visionmedia/superagent) a number of times and it's wonderful, but beware if you're trying to make it work with old IE.
- prezjordan 13y agoGeez, has he made everything?
- phpnode 13y agoyes, he has. as has substack. basically everything. but part of the reason they are so prolific is that they focus on very small, single use modules that do one thing well. So they have hundreds of repos, but many of them are 10 - 15 lines of code.
- prezjordan 13y agoThat may be one reason, but the guy's responsible for Express, Jade, Mocha, Commander, and many others. I honestly thought visionmedia was a company until a few months ago.
- phpnode 13y agoi did too, the sheer volume of useful code he ships is incredible.
- STRML 13y agoThe node-inspired `http-browserify` is my favorite; really nice, sane syntax for doing ajax requests that you can mix with client-side streams and transforms to do really advanced things with code that is clear and readable. Of course you have to use browserify to use it, but it's worth looking into.
- clarkdave 13y agoReqwest (https://github.com/ded/reqwest https://github.com/ded/reqwest) has worked well for me, and has EnderJS support too. The API is similar, but not identical, to jQuery.ajax.
- 2mur 13y agoIf you are a node.js user, these libraries have familiar APIs: https://github.com/substack/hyperquest https://github.com/substack/hyperquest https://github.com/iriscouch/browser-request https://github.com/iriscouch/browser-request