Posted by Toby Inkster on 05/22/06 09:35
RobM wrote:
> Question: does anyone know that when I have images (all or some) in the
> style sheet set to display: none; the (handheld) browser will still download
> them but not display? (i.e. still bigger bandwidth). I would assume they're
> not downloaded? If they are, well control that dynamically from the
> server
It very much depends on the browser. Some are smart enough to download
only the images they need. Others seem to simply download all images
linked to by the CSS, assuming they'll be needed at some point in time.
This is something to bare in mind if you use a large background image on
just one or two pages.
BODY.special { background-image: url("large-bg.png"); }
in your stylesheet may download the large-bg.png image even on non-special
pages.
--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
[Back to original message]
|