Re: [whatwg] 'hidden' as resources control (Was: Simplified <picture> element draft)

On Jan 23, 2014, at 10:52 PM, Boris Zbarsky <bzbarsky@MIT.EDU> wrote:

> On 1/23/14 9:13 PM, Bruno Racineux wrote:
>> Could 'resource control' be an associated spec of the 'hidden' attribute?
> 
> It bothers me, at first glance, to overload the attribute to mean different things.  I predict people will appear who want the hidden thing to hide but still want loading/preloading.
> 
> It would be better to just have a separate attribute for the separate task if we go this direction.

In addition to overloading `hidden`, it misses the `postpone` use case of images that we want to be visible (i.e. not have a `hidden` attribute), but not loaded until/unless the user scrolls enough for them to be within the viewport.

Received on Friday, 24 January 2014 15:40:55 UTC