Spec discussion: https://github.com/w3c/preload/issues/120
Looks like it's useful if sites can ask UA to selectively preload images like what we do for regular image loading with `srcset` and `sizes` attributes.
(Intent to implement is to be sent separately)
Sizes already has 2 meanings, one for image/source and one for link rel=icon.
It seems cleaner to just re-use the same attribute and its meaning for image/source.
But, I saw some complexity concerns in the github issue so for experiment purposes, we can temporarily use a new attribute (e.g. imgsizes as was suggested on the spec issue).
I personally prefer to have different attribute, since it simplifies the implementation.
The rel=icon and img sizes attribute has two completely different value syntax.
Initial implementation is in, behind the chrome://flags/#enable-experimental-web-platform-features flag.
Current implementation uses "srcset" and "imgsizes", but note that these names are in flux / experimental. (See https://github.com/w3c/preload/issues/120)
ksakamoto@ I noticed the new attributes introduced are not added as IDL attributes (via html_link_element.idl under a REF). Is the plan to eventually make them IDL attributes as well, similar to the already-existing `sizes` attribute? Asking so I know how this'll be spec'ed.
Comment 1 by kinuko@chromium.org
, Feb 19 2018