I'm using an function to dynamically load content via Ajax using this way:
$("#content").load('file.html', function(response, status, xhr){
alert('test');
});
The alert loads when the request is succesfull but before any images are loaded. Is there any function I can use that triggers after all images (within file.html) are loaded and the DOM is fully ready? I've tried the usual, like $(window).load and $(document).ready, but that obviously would not work, which makes sense.
Edit for future reference: To clarify, I was using skrollr on the content loaded. Since that plugin adapts the body height based on the content loaded, it messed up badly on ios devices. Using this function I can make sure the skrollr instance is not refreshed too early.