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
https://forums.phpfreaks.com/topic/235744-image-displaynone/
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
https://forums.phpfreaks.com/topic/235744-image-displaynone/#findComment-1211766
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.