I am doing an simple get request to get a page which has scripts that dynamically insert content.
When I try to do
$.ajax({
url: url,
type: "GET",
success: function(data, status, xhr){
// triggered before dynamically inserted content is added
},
error: function(xhr, status, error) {
console.log(error);
}
});
The success callback function is triggered and the data returned doesn't contain the dynamically inserted content. Is it possible to wait for it to be loaded? If so, any idea how?