[whatwg] Deferring image load

Bjartur Thorlacius svartman95 at gmail.com
Mon Feb 13 12:51:17 PST 2012


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



More information about the whatwg mailing list