JSFiddle - React, Tailwind, and code Playground
by rwaldron
JavaScript
$('body').append('loaded<br/>');
$.ajax({
type: 'GET',
url: '/echo/json',
success: function(data){
$('body').append('success<br/>');
}
});
$(window).ajaxSuccess(function(event, xhr, settings){
$('body').append('ajaxSuccess');
});
$("body").ajaxSuccess(function(event, xhr, settings){
$(this).append('ajaxSuccess');
});