Just dipping my toes into the world of javascript.
I'm currently tackling the challenge of lazy loading some large background images on my website. My goal is to have a "loading" gif displayed while the image is being loaded, similar to how it works with HTML image tags. However, I can't seem to figure out how to achieve this with CSS background-images.
I've searched for solutions online, but none of them have provided a satisfactory answer. In fact, some of the demos and jsfiddles don't even work properly when I try them out.
All I'm looking for is a way to display a loading gif behind my specified CSS background-images while they are loading. I want to avoid having blank black areas that might make visitors think something is broken on the site.
Currently using LanguidLoad for my html tag images. If anyone could help me integrate this solution with LanguidLoad, that would be fantastic!
Appreciate any assistance you can provide!