I've recently stumbled upon several websites that use large, high quality images as background images. I love this look, but I'm obviously concerned with load times.
Here's an example: http://bit.ly/1duLlYy
To me it looks as if the image is being loaded with CSS. But there has to be another way they are doing this, since there isn't a load time. This may be stupid, but I don't think it's server side, otherwise they image link wouldn't be in the CSS document, would it?
I'd appreciate some feedback on best practices for this.
Thanks.
I presume you're asking this question, because you found it surprising that the image didn't load "after" the page?
My favorite trick to prevent "FOUC" (Flash Of Unstyled ontent) is to base-64 encode such images into your CSS. It's essentially embedding your images in your CSS, and the browser won't render the page until the entire CSS file is downloaded.
This will cause your CSS file to be large, and IE8 has limitations on file size, but it's a really easy solution if you have a build process or a CSS preprocessor like LESS.