So, I'm using the following code to show a loader in my Website:
$(window).on("load", function(){
$(".loader").fadeOut("slow");
})
But there's a Carousel which has many images. I would like to "exclude" those images from the loading, so the event 'load' gets triggered before those images finish loading. Because then the loader would fade, but the images of the carousel which are almost at the end of the website would keep loading without preventing the user to see the website.
Is there a way to do that? (like adding a class to the images I want to exlude from the 'load' event listener or something...)