fancyapps / fancybox

jQuery lightbox script for displaying images, videos and more. Touch enabled, responsive and fully customizable.
http://fancyapps.com/
7.28k stars 1.78k forks source link

Progressive JPEGs should be displayed immediately #313

Closed johncrusade closed 12 years ago

johncrusade commented 12 years ago

Progressive JPEGs should be displayed immediately without requiring to load the complete image. Currently, irrespective of the image's interlacing, Fancybox waits to load the image completely into the memory before showing the same.

fancyapps commented 12 years ago

It is not possible to detect if image is a progressive jpeg using JavaScript.

johncrusade commented 12 years ago

Well, in that case, can the image be shown immediately, irrespective of the image type? I could ensure then that all images are of progressive JPEG type.

fancyapps commented 12 years ago

Do you really would set width/height for each image individually?

johncrusade commented 12 years ago

Would setting the width/height be required for showing the image immediately? If yes, then I could pass the width/height as data attributes from PHP and later use it in Fancybox.

fancyapps commented 12 years ago

Then this could be archived like this - http://jsfiddle.net/aGTww/

johncrusade commented 12 years ago

Great! got it working. Thanks for the help!