|Subject:||When and how are resources referenced in Stylesheets loaded?|
|Posted by:||Dan Rumney (danrumn…@warpmail.net)|
|Date:||Fri, 20 Jan 2006|
I've been thinking about the URIs in stylesheets, namely of images, and
I was wondering about how they are requested from the server.
I've come up with the following possibilities, but I can't find the part
of the CSS spec that says when they do... anybody out there know for a
fact? Or is it time to do some empirical testing?
1. Browser requests the resource and stores a local copy when it reaches
the URI in the stylesheet... uses the copy for applications of the style
to the page
2. Browser requests the resource and stores a local copy when it first
applies the appropriate style to the page... uses the copy for
subsequent applications to the page
3. Browser requests the resource each time it needs to apply the style
to the page...
This would have particular ramifications for styles applied to LI tags,
or for people making use of the :hover pseudo-class to implement rollovers
Any comments would be most welcome.