Your jQuery:
$(document).ready(function() {
$.ajax({
url: "test.html",
context: document.body
}).done(function() {
$(this).addClass("done");
})
});
Without jQuery: var oReq = new XMLHttpRequest();
oReq.onreadystatechange = function() {if (this.readyState === 4) {
window.document.body.className += " done";
}};
oReq.open("GET", "test.html", true);
oReq.send();
Screenshots (blue indicates successful ajax):without jQuery: http://browsershots.org/http://evening-harbor-8654.herokuapp...
with jQuery: http://browsershots.org/http://evening-harbor-8654.herokuapp...