Jump to content

image display:none


jonniejoejonson

Recommended Posts

If an images css display is set to none, does that mean that the image is not actually downloaded until the display is changed?... 

I am trying to create an image gallery that has roughly 100 large images in it.

I wanted them to be placed on a div that is masked with overflow hidden...

However i obviously dont want to have to download all 100 images at once, what would be the best way to go about this...

Would you... download 10 images and when the gallery gets to positiuon 10 download the next 10 images?... or is there a way to do it all at once without having to download them all at once...

kind regards to any responders.

Link to comment
Share on other sites

Yes, the images will be DN'ld if the display is set to none.

 

My preferred way for this to work is using AJAX to call the images as you need them.

 

So, if you just used thumbnails on the page, and then on the mouseover (hover) you would download the full image and show it.  Or, you could use something like lightbox.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.