Reply to Re: CSS - images set to "invisible" - do they still download?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация