HighDots Forums  

Manage image download with CSS

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Manage image download with CSS in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Arturo Buonanni
 
Posts: n/a

Default Manage image download with CSS - 03-22-2006 , 02:15 AM






Hi to all,

I was wondering if User Agents still downolads images you have marked
display: none or visibility: hidden wich CSS.

Somebody knows how the major web browsers handles these situations
regarding the images download?

Thanks for your help.

Reply With Quote
  #2  
Old   
Spartanicus
 
Posts: n/a

Default Re: Manage image download with CSS - 03-22-2006 , 10:48 AM






Arturo Buonanni <leave_this_out_deer.chief.this.also (AT) gmail (DOT) com> wrote:

Quote:
I was wondering if User Agents still downolads images you have marked
display: none
Not downloaded

Quote:
or visibility: hidden wich CSS.
Downloaded

--
Spartanicus


Reply With Quote
  #3  
Old   
Chris Sharman
 
Posts: n/a

Default Re: Manage image download with CSS - 03-22-2006 , 11:00 AM



Arturo Buonanni wrote:
Quote:
Hi to all,

I was wondering if User Agents still downolads images you have marked
display: none or visibility: hidden wich CSS.

Somebody knows how the major web browsers handles these situations
regarding the images download?
Also (some ie) background images specified with css, but not used !!
Realistically, it's up to the agent to make decisions on what to preload
in case it's needed.

Chris


Reply With Quote
  #4  
Old   
Tony
 
Posts: n/a

Default Re: Manage image download with CSS - 03-22-2006 , 12:00 PM



Spartanicus wrote:
Quote:
Arturo Buonanni <leave_this_out_deer.chief.this.also (AT) gmail (DOT) com> wrote:


I was wondering if User Agents still downolads images you have marked
display: none

Not downloaded
Really? So if I have a javascript that changes the display on that
image, it will download it when display is changed?

I'm not trying to argue, but I have a hard time accepting that. Do you
have support for your contention?


Reply With Quote
  #5  
Old   
Spartanicus
 
Posts: n/a

Default Re: Manage image download with CSS - 03-22-2006 , 12:49 PM



Tony <tony23 (AT) dslextreme (DOT) WHATISTHIS.com> wrote:

Quote:
I was wondering if User Agents still downolads images you have marked
display: none

Not downloaded

Really? So if I have a javascript that changes the display on that
image, it will download it when display is changed?
It should in proper browsers, apparently that doesn't include IE and
Mozilla offshoots.

--
Spartanicus


Reply With Quote
  #6  
Old   
Arturo Buonanni
 
Posts: n/a

Default Re: Manage image download with CSS - 03-22-2006 , 02:58 PM



So, it's up to the Agent to handle that.

Ok, thank you all for the help. :-)

On Wed, 22 Mar 2006 17:00:20 +0000, Chris Sharman
<chris.sharman (AT) sorry (DOT) nospam> wrote:

Quote:
Arturo Buonanni wrote:
Hi to all,

I was wondering if User Agents still downolads images you have marked
display: none or visibility: hidden wich CSS.

Somebody knows how the major web browsers handles these situations
regarding the images download?

Also (some ie) background images specified with css, but not used !!
Realistically, it's up to the agent to make decisions on what to preload
in case it's needed.

Chris

Reply With Quote
  #7  
Old   
Tony
 
Posts: n/a

Default Re: Manage image download with CSS - 03-22-2006 , 05:08 PM



Spartanicus wrote:
Quote:
Tony <tony23 (AT) dslextreme (DOT) WHATISTHIS.com> wrote:

I was wondering if User Agents still downolads images you have marked
display: none

Not downloaded

Really? So if I have a javascript that changes the display on that
image, it will download it when display is changed?

It should in proper browsers, apparently that doesn't include IE and
Mozilla offshoots.
So you're saying that the PROPER behavior is to not load the image on
the page load, and to load it when the div is displayed.

Again - what support do you have for that?


Reply With Quote
  #8  
Old   
Spartanicus
 
Posts: n/a

Default Re: Manage image download with CSS - 03-23-2006 , 02:31 AM



Tony <tony23 (AT) dslextreme (DOT) WHATISTHIS.com> wrote:

Quote:
I was wondering if User Agents still downolads images you have marked
display: none

Not downloaded

Really? So if I have a javascript that changes the display on that
image, it will download it when display is changed?

It should in proper browsers, apparently that doesn't include IE and
Mozilla offshoots.

So you're saying that the PROPER behavior is to not load the image on
the page load, and to load it when the div is displayed.
It's the proper behaviour, not a must per spec. It's what I'm used to
seeing from my main browser.

Quote:
Again - what support do you have for that?
Plain logic. Always downloading elements that are intended to be shown
when JS and CSS are enabled is a waste of resources.

That may not concern someone on a 10mbps home connection with 60G/M cap,
but it sure matters when on a mobile connected at 9600bps and charged
for every kb downloaded.

--
Spartanicus


Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.