Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - CSS - images set to "invisible" - do they still download?

 
Thread Tools Search this Thread
Old 05-22-2006, 04:37 AM   #1
Default CSS - images set to "invisible" - do they still download?


Greetings

Looking at adding appropriate handheld access to a web application. As its
JSP based, considering a combination of the use of "media" stylesheets
("screen" for normal, and "handheld" for ... handheld) and dynamic JSP
(after testing useragent) to cut down the size of what's presented.

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

Thanks all
Cheers
Rob




RobM
  Reply With Quote
Old 05-22-2006, 07:18 AM   #2
Spartanicus
 
Posts: n/a
Default Re: CSS - images set to "invisible" - do they still download?

"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?


Depends on the UA, some do, some don't.

--
Spartanicus
  Reply With Quote
Old 05-22-2006, 07:35 AM   #3
Toby Inkster
 
Posts: n/a
Default Re: CSS - images set to "invisible" - do they still download?

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

  Reply With Quote
Old 05-22-2006, 12:56 PM   #4
RobM
 
Posts: n/a
Default Re: CSS - images set to "invisible" - do they still download?


"RobM" <> wrote in message
news:1macg.8515$...
> Greetings
>
> 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
>
> Thanks all
> Cheers
> Rob
>


Thanks for the replies, guys. Seems the way to go is (if yer using
dynamics.. asp/jsp) do it at the source for the big stuff (graphics), media
css for widths and placements.

Cheers
Rob


  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump