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

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:

   https://www.w3.org/Bugs/Public/show_bug.cgi?id=17842

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