W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2012

[whatwg] Deferring image load

From: Bjartur Thorlacius <svartman95@gmail.com>
Date: Mon, 13 Feb 2012 20:51:17 -0000
Message-ID: <op.v9mxjrvmewg2x1@bxr>
On Mon, 13 Feb 2012 19:12:09 -0000, Boris Zbarsky <bzbarsky at mit.edu> wrote:
>> On the contrary, if you've laid out two screenfuls you can guess that
>> anything after that will not be in the aforeoutlaid* screenfuls.
>
> I wasn't talking about guessing at visibility.  I was talking stuff like  
> this:
>
>    <!doctype html>
>    <div style="height: 100vh"></div>
>    <img src="something">
>    <div style="position: relative; top: -50vh"></div>
>
> Where should that second div be placed?  Should the user be able to see  
> it?  You don't know until you know the image size.
>
In this case, User agents would obviously need to test if the latter div  
would be visible if the image was monopixel. Such complications would be  
bound to add up as we take more features into account; the optimization  
may well not be worth the complexity.

> And it gets even worse when tables are involved, because an image  
> arbitrarily far down the table can affect the table column widths and  
> the width of the whole table and the site probably depends on particular  
> widths.
>
I surrender to broken websites.
-- 
-,Bjartur
Received on Monday, 13 February 2012 12:51:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:07 GMT