How do I check if all images of appended HTML are loaded? The code looks like this:
$.ajax({
url: "../api/listings",
type: 'GET',
success: function (html) {
$('#container').append(html);
};
});
$newItems
contains some IMG's. I need to run a function after they are loaded. I tried adding this to success function:
$('#container').on('load', function(){console.log('hello world!')});
but it didn't work