JSFiddle - React, Tailwind, and code Playground

JavaScript

$(function(){
  $(document).ajaxStop(function () {
       alert("all ajaxes finished");
  });
    
  $.ajax({
     url: "http://www.someURl.com", // fake URL, will throw error     
     type: 'post',        
     success : function(jsonSaveResponse) { alert("successs 1"); },
     error: function (jqXHR, textStatus, errorThrown) {
         alert("error 1");
     } 
  }); 
    
  $.ajax({
     url: "http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js", // from w3schools
     type: 'GET',         
     success : function(jsonSaveResponse) { alert("successs 2"); },
     error: function (jqXHR, textStatus, errorThrown) {
          alert("error 2");
     } 
  }); 
});