I am using the below code to replace the first image within a div. Is it possible to preempt an image loading and replace it before it's in? The method below works, but of course the initial image loads then replaces when this loads on DOM ready.
var image = $('.promo-unit-site-logo-3').find('img:first').attr('src', 'blank');
console.log(image.attr('src'));
Cheers, John