W3C home > Mailing lists > Public > public-respimg@w3.org > August 2014

Multiple downloads

From: Thomas Hertog <thomas.hertog@gmail.com>
Date: Fri, 22 Aug 2014 11:56:30 +0200
Message-ID: <CAG8GZ1RHDCd3T3Zy0hYZ3486JM6cbF6my9whMVXsksPcLpevsg@mail.gmail.com>
To: public-respimg@w3.org

first of all, my apologizes if my English isn't well-written. I am not a
native speaker but I tried my best.

as I was reading about the picture element combined with the srcset
attribute, I was excited.
Because this time we could have responsive images without the burden of
doing all calculations myself.

the reason I want to use multiple files is performance.
I don't want my users to download a 5MB picture when the biggest they can
display would contain only 1MB

As far as I can understand the specification, this problem is still not
solved by using the picture element combined with the srcset and sizes
Because what would happen if a viewport is resized (due to someone simply
resizing their browser window, or an orientation change on mobile).

Would this mean a new file has to be downloaded for displaying if the new
area where the image can be displayed reaches a certain (bigger) threshold?
Let me illustrate with an example.
A mobile phone with screen size 480x800px navigates to a website. The
medium sized image gets downloaded because the phone is held in portrait
Once the user rotates his phone and the orientation changes, the browser
recalculated and discovered a bigger image could be used.
Will this bigger image be downloaded as well? Or will the other image be
stretched out? Or even something else I couldn't think of?


Received on Sunday, 24 August 2014 08:36:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:06:12 UTC