Re:WebKit Limit on Retina JPG Image Display
by brudgers on Thursday March 22, 2012 @01:33PM
(#3740906)
>"it certainly hurts on the bandwidth side."
I expect the iPad3's high resolution to cause a lot websites pain on the bandwidth side. When it comes to the web, people aren't as picky with their high resolution desktop displays as they are likely to be with their iPads.
Re:WebKit Limit on Retina JPG Image Display
by artursapek on Thursday March 22, 2012 @01:17PM
(#3740811)
Try switching your PNG's from RGB to Indexed color - depending on what the image is it can dramatically lower the file size.
Re:WebKit Limit on Retina JPG Image Display
by apinstein on Thursday March 22, 2012 @02:46PM
(#3741315)
Photos don't do so well in 8-bit color.
You could just slice it into multiple JPGs. It's probably even better for parallel download.
Re:WebKit Limit on Retina JPG Image Display
by gokhan on Thursday March 22, 2012 @12:48PM
(#3740644)
Better? Wrong. Please read "Minimize HTTP Requests" here:
Re:WebKit Limit on Retina JPG Image Display
by huxley on Thursday March 22, 2012 @01:33PM
(#3740907)
That's a great rule for general purposes, but it's intended for situations where you have lots of small assets that you are asking the client to download.
In this instance we're talking about 2 megapixel images, so the extra HTTP requests are not even going to register in the mix. With modern browsers pulling down 6+ parallel downloads, breaking the image up might make plenty of sense.
If you use domain sharding you can get more parellel downloads on older browsers which reduces the problems some due to more requests (parellel request limit on old browsers and unneeded cookies for static resources, but theres still overhead), but that's a separate issue. It's best to avoid the problem altogether by minimizing HTTP Requests (as you suggest).
It's not wrong. If you have only a few slices, they will load in parallel in most browsers.
Re:WebKit Limit on Retina JPG Image Display
by apinstein on Thursday March 22, 2012 @02:46PM
(#3741311)
Well we already slice our images, and even those slices are too big. We were annoyed to have to maintain another set of files just for the iPad. So we just use a smaller (and blurrier when scaled up) image at the moment. I was hoping they would just open it up :)
We didn't realize it could be circumvented with PNG's, that's an interesting idea, though it certainly hurts on the bandwidth side.