News for hackers. Stuff that matters.
Re:Faster Images using HTTP2 and Progressive JPEGs by philbo on Wednesday December 28, 2016 @06:20AM (#13269846)
It's worth balancing this against other research showing that users often don't like the experience provided by progressive image rendering:

http://www.webperformancetoday.com/2014/09/17/progressive-im...

Re:Faster Images using HTTP2 and Progressive JPEGs by rebuilder on Wednesday December 28, 2016 @06:40AM (#13269903)
Sample size of one, but on mobile, my number one pet peeve (apart from popover ads and autoplay videos!) is layouts that change as the page loads. Progressive encoding with multiplexing should help make sure newly loaded images don't make article text jump around as I try to read it.

Then again, maybe this is a laziness issue since it seems to me defining a layout independent of actual image content is something that you could do in the 90's.

Re:Faster Images using HTTP2 and Progressive JPEGs by the8472 on Wednesday December 28, 2016 @08:55AM (#13270438)
As far as page layout goes progressive should not behave any different than non-progressive since images have an intrinsic size in the header which is considered by the rendering engines when sizing the image layer. It does not change throughout the load process.

Multiplexing will load the necessary headers just as soon with non-progressive images.

Re:Faster Images using HTTP2 and Progressive JPEGs by tyfon on Wednesday December 28, 2016 @08:35AM (#13270333)
Two! I hate when it moves the stuff around just as I am about to hit a link and hit an ad instead. It's hard enough without the page moving due to my large fingers.

Also:

* Popups asking me to download app

* Auto starting video of any sort

* Not loading the complete page so it has to keep loading as you read. This is very inconvenient when sitting on the train or subway with lots of tunnels.

* Link/button for "Read full story" on the story it self.

Most of these are reason enough for me to never visit the page again.

Re:Faster Images using HTTP2 and Progressive JPEGs by y4mi on Wednesday December 28, 2016 @11:27AM (#13271543)
i actually wrote a scraper and a tiny android webview application because my most visited website was constantly jumping around...
Re:Faster Images using HTTP2 and Progressive JPEGs by rimantas on Wednesday December 28, 2016 @06:51AM (#13269937)
Specifying image dimensions is enought to prevent any jumps.
Re:Faster Images using HTTP2 and Progressive JPEGs by eknkc on Wednesday December 28, 2016 @07:35AM (#13270097)
On mobile, we mostly do percentages on images due to varying display sizes. Gets ridiculous when you want to specify the dimension, because you can't. We need to specify aspect ratios and css does not provide that.

Went with a padding-top + absolute position in wrapper hack at the end. That jumpiness is part the tooling problem.

Re:Faster Images using HTTP2 and Progressive JPEGs by kuon on Wednesday December 28, 2016 @08:06AM (#13270200)
I know it's a hack, but what is wrong with it? I've always been using that and it works.

I haven't looked in details into the new srcset and size attributes of image, but won't that help also?

Re:Faster Images using HTTP2 and Progressive JPEGs by woof on Wednesday December 28, 2016 @08:22AM (#13270284)
<picture> with multiple srcset makes it possible to serve images that are displayed at 100% width, filling their (DOM) container.

Check out http://scottjehl.github.io/picturefill/

Re:Faster Images using HTTP2 and Progressive JPEGs by hinkley on Wednesday December 28, 2016 @12:45PM (#13272138)
This is why I use vh, vw for proportional images at mobile breakpoints.

You still have to know the aspect ratio of the original image of course, but it does help.

Re:Faster Images using HTTP2 and Progressive JPEGs by eknkc on Thursday December 29, 2016 @02:48AM (#13276185)
We decided not use use viewport relative units for some reason I can't remember. I guess we had paddings etc in pixels and that would mean using calc() and that's another can of worms.

On a second thought, cw, ch as in container width, height would be a great addition.

Re:Faster Images using HTTP2 and Progressive JPEGs by patates on Thursday December 29, 2016 @05:27AM (#13276622)
> On a second thought, cw, ch as in container width, height would be a great addition.

Isn't that achieved by just defining height and width in percentages?

Re:Faster Images using HTTP2 and Progressive JPEGs by eknkc on Thursday December 29, 2016 @06:33AM (#13276789)
This would allow `height: 50cw`. Then we can define specific aspect ratios like `width: 100cw; height: 50cw;` would force image to have 2:1 aspect ratio.
Re:Faster Images using HTTP2 and Progressive JPEGs by woof on Wednesday December 28, 2016 @07:40AM (#13270113)
And what dimensions would you prefer?

Small, medium, large?

And what kind of display would you like those for?

1x, 2x or maybe 3x?

Re:Faster Images using HTTP2 and Progressive JPEGs by inian on Wednesday December 28, 2016 @06:28AM (#13269869)
This is the only research that claims progressive images aren't a good user experience though. I can't confirm with electrodes attached to my brain but personally I like progressive images better than baseline and they are smaller too!
Re:Faster Images using HTTP2 and Progressive JPEGs by philbo on Wednesday December 28, 2016 @06:35AM (#13269888)
True. As ever, it makes sense to A/B test these things with your userbase. Their behaviour is more important to your own sites than any research or personal preference.
Re:Faster Images using HTTP2 and Progressive JPEGs by danielrhodes on Wednesday December 28, 2016 @06:37AM (#13269894)
Can't you just reason that images coming through earlier is a better experience than not? Do you really need to AB test this?
Re:Faster Images using HTTP2 and Progressive JPEGs by Normal_gaussian on Wednesday December 28, 2016 @08:18AM (#13270267)
You can. You can also be wrong.

If the value coming through your site is great enough that marginal improvements (on the order of 1%) are worth time investment (compared to other available improvement avenues) then this is something you should A/B test.

Re:Faster Images using HTTP2 and Progressive JPEGs by trav4225 on Wednesday December 28, 2016 @03:54PM (#13273558)
Hah, I'm surprised at the replies here. I guess I'm in the minority opinion (I don't like progressive loading of anything; just prepare the page, then show it to me :-).
Re:Faster Images using HTTP2 and Progressive JPEGs by rockostrich on Wednesday December 28, 2016 @09:29AM (#13270658)
One piece of research that measures vitals instead of just asking the users which one they liked more isn't very convincing. It could even be A/B tested by measuring how long people stay on the page or bounce rate above the fold.
Re:Faster Images using HTTP2 and Progressive JPEGs by SmkyMt on Wednesday December 28, 2016 @11:39AM (#13271642)
Sample size: three (and counting). It's an awful problem, mobile or laptop/desktop: My greatest gripe is that I may think page is fully loaded, click to highlight text and - boom! I'm sent of to some page of video or advertising through a link that abruptly displaces the target I aimed at.
Re:Faster Images using HTTP2 and Progressive JPEGs by hinkley on Wednesday December 28, 2016 @12:47PM (#13272159)
I'm starting to think this is on purpose. Or at least willful ignorance.
Re:Faster Images using HTTP2 and Progressive JPEGs by trav4225 on Wednesday December 28, 2016 @03:55PM (#13273565)
I also believe that, on some sites, it's 100% on purpose.