I've got a complicated side scrolling page I'm working on with several layers of positioned divs that make up the background.
There's also a ton of images on the page that slow down load time.
I need to prioritize the background layers (divs with css background images) to load in a specific order (i.e. first front hills, then back hills, then sky, then dog).
I've tried using a jquery load for this but the other items loading on the page still interfere with this. I've tried hiding them and showing them first on document ready, and putting them at the top of my HTML document. I figure there is some way to do it with a load event, but I'm not sure how to prioritize it from the rest of the page load.
I'm trying to figure out if there is a way to essentially pause all load, load my 4 images in order, then continue page load.
Thanks for any suggestions or comments! I will approve the first submitted answer that works! I know there's other tickets similar to this, but I've been working on this all weekend and tried several of them but can't seem to find something that works exactly like I need it to.
Thank you :) - Ann