Skip to content

Instantly share code, notes, and snippets.

View aseem2625's full-sized avatar
🏖️
..hmm

Aseem Gupta aseem2625

🏖️
..hmm
View GitHub Profile
@hedleysmith
hedleysmith / fetch_vs_jquery_vs_superagent.js
Created August 12, 2016 15:00
HTTP requests three ways - Fetch API vs jQuery.ajax vs Superagent
/*
* Client-side HTTP requests three ways, using ES6 syntax.
* 1. jQuery.ajax()
* 2. Superagent
* 3. Fetch API
* 4. Bonus helper
*/
// 1. jQuery.ajax()
// http://api.jquery.com/jquery.ajax/