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

David Newton david at davidnewton.ca
Fri Jan 24 07:40:27 PST 2014

On Jan 23, 2014, at 10:52 PM, Boris Zbarsky <bzbarsky at 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.

More information about the whatwg mailing list