JSFiddle - React, Tailwind, and code Playground
HTML
<div id="test"></div>
JavaScript
function afterLoad() {
alert('test');
}
$(document).ready(function(){
$("body").bind("ajaxComplete", function(e, xhr, settings){
afterLoad();
});
$('#test').load("../img/logo.png", function(response, status, xhr) { });
});