This is useful to check that you’re images have loaded to continue running other scripts. You can specific class or an id instead of the img to target specifically


$(‘img’).load(function() {
console.log(‘image has loaded successfully’);
});

Leave a Reply