Closed johncrusade closed 12 years ago
It is not possible to detect if image is a progressive jpeg using JavaScript.
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.
Do you really would set width/height for each image individually?
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.
Then this could be archived like this - http://jsfiddle.net/aGTww/
Great! got it working. Thanks for the help!
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.