DEV Community

loading...

Discussion on: Do you prefer Fetch or Axios?

Collapse
yoursunny profile image
Junxiao Shi

jQuery.ajax()
🤦

Collapse
microworlds profile image
Caleb David

That legendary function 😂

Collapse
kudostoy0u profile image
Kudos Beluga

$.get()
$.post()

Collapse
yoursunny profile image
Junxiao Shi

$.getJSON()
$.getScript()

Don't forget $(selector).load(uri).

All of these are better than my first AJAX program: I didn't know JavaScript has closures, so that every XMLHttpRequest object is a global variable.
It's 2006, when everyone was using IE6, I just read a book about AJAX, I haven't heard about Prototype.js, and jQuery existed for less than a year.

Collapse
madza profile image
Madza Author

been there, done that 😂😂