My question comes from running some some sites through a Website Optimization tool. This anaylizer seemed to load all the images in a stylesheet even if that background image wasn't called.
http://www.websiteoptimization.com/services/analyze/ Thanks Nancy On Fri, May 10, 2013 at 8:34 AM, Tim Climis <[email protected]> wrote: > >> With one stylesheet, Image sprite 2 is being called on page A B and C >> even though the image is only displayed on page C >> > > Aren't browsers smart enough to not load an image if it's not being used? > From my quick examination, I have a style sheet that references minus.gif. On > a page where minus.gif does not appear, it's not showing up in the page > resources. So I don't think an image is actually loaded by the browser just > because it's referenced in a style sheet. I think there actaully needs to be > an element it applies to first. > > So if the goal is to limit page load time, this is a non-issue. > > ---Tim ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
