Javascript event that is triggered when browser loads new inline (ajax) content?

Is there a Javascript event that is triggered when browser loads new inline (ajax) content? I would like to catch new content as it happens inside my browser extension. Thanks to all

window.onload = function() {
    var observer = new MutationObserver(function(mutations) {
        alert("hello");
    });

    var config = {
        attributes: true,
        childList: true,
        characterData: true
    };

    observer.observe($('#contentArea'), config);
}

105 thoughts on “Javascript event that is triggered when browser loads new inline (ajax) content?”

  1. 346332 700225Ive applied the valuable points from this page and I can undoubtedly tell that it gives lots of assistance with my present jobs. I would be extremely pleased to keep acquiring back in this web page. Thank you. 531070

    Reply

Leave a Comment