https://github.com/github/fetch
Among countless others. Please don't bring in all of jQuery if you're just going to use one function from it.
http://youmightnotneedjquery.com/
var request = new XMLHttpRequest(); request.open('GET', '/my/url', true);
request.onload = function() { if (request.status >= 200 && request.status < 400) { // Success! var data = JSON.parse(request.responseText); } else { // We reached our target server, but it returned an error
}
};request.onerror = function() { // There was a connection error of some sort };
request.send();
OR
Even better, you should just use a reactive front end framework. https://vuejs.org/ combined with https://github.com/vuejs/vue-resource is currently my fave.
Just use jQuery. Please.
vue.min.js is 75k. vue-resource.min.js is 13k.
So jquery is smaller.