W3C home > Mailing lists > Public > public-web-perf@w3.org > April 2013

Re: <img src="..." defer>

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 15 Apr 2013 18:31:11 +0000 (UTC)
To: Jake Archibald <jakearchibald@google.com>
cc: public-web-perf@w3.org
Message-ID: <Pine.LNX.4.64.1304151821370.18848@ps20323.dreamhostps.com>
On Sun, 14 Apr 2013, Jake Archibald wrote:
> Developers are using hacks or ending up with unnecessary downloads when 
> they use JavaScript to change the src of an image, but want to provide a 
> non-JS fallback (see 
> https://www.w3.org/Bugs/Public/show_bug.cgi?id=17842). Although this 
> particular case will be solved with something like srcset, there are 
> other cases like conditionally using an image format with limited 
> support.
> Developers are using hacks to lazy-load images that are likely to be 
> outside the viewport initially. These hacks use heavy scroll listeners 
> and don't take the connection type into account.

FWIW, I plan to add a feature to <img> to handle this, for this bug:


If there's implementor interest, it would be good for said implementors to 
say so on the bug. :-)

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 15 April 2013 18:31:33 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:04:35 UTC