My website seems to be running too slowly based on user reports. I suspect that the background images in CSS may be causing the issue.
The site uses a custom build system to concatenate and compress all CSS, create CSS sprites automatically, resulting in a 9kb CSS file for the entire page. There are around 60 background images included in this CSS, with some going to the same sprite.
I am curious about how browsers handle downloading these images - whether they download them as needed or all at once when they match a selector.
Currently, Firebug in Firefox indicates that all the images are being downloaded. What techniques would you recommend to avoid or mitigate this issue?
Edit: Upon reevaluation, it appears that the downloaded images are associated with a hidden lightview, while the background-images are linked to the DOM elements.