DEV Community

loading...

Discussion on: Do you prefer Fetch or Axios?

Collapse
yoursunny profile image
Junxiao Shi • Edited

$.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.