I am using flickity gallery and the images loaded but when I run the following the img is not removed:
$('.carousel').imagesLoaded().progress( function( instance ) {
$('img').on("error", function () {
$(this).remove();
});
});
I have also tried without to run the .remove()
within the gallery plugin but i still get the broken images
$(document).ready(function() {
$('img').on("error", function () {
$(this).remove();
});
});