Okay, this makes sense, thanks!
Unfortunately I couldn't find similar approaches like the one you have proposed and after several hours of trying, I feel like my JS skills are not good enough to realize this at the moment. Maybe someone can help me with the solution.
If not, it's fine though, since it's just a personal project. I can get rid of the lazy loading and use imagesLoaded instead.