JSFiddle - React, Tailwind, and code Playground

HTML

<p>Click this link before 6 seconds have passed. Then, open developer console and notice how the ajax request did not complete. <a download href="http://code.jquery.com/jquery-git2.js">link</a></p>

JavaScript

console.log("[" + new Date().toTimeString() + "] start ajax request");
$.ajax({
    type: "POST",
    url: "http://mgol.eu/sandboxes/longwait/"
}).always(function () {
    console.log("always");
}).done(function () {
    console.log("done");
}).fail(function () {
    console.log("fail");
});

setTimeout(function () {
    console.log("[" + new Date().toTimeString() + "] ajax request should have completed");
}, 10000);