← Back to release summary

imagesrcset and imagesizes attributes on link rel=preload

Category
Performance
Type
New or changed feature
Status
Enabled by default (Chrome 73)
Intent stage
None

Summary

Add imagesrcset and imagesizes attributes to <link rel=preload as=image>, that correspond to the srcset and sizes attributes of HTMLImageElement. We are using imagesizes here instead of sizes because it already has a different meaning for HTMLLinkElement in the rel=icon case.

Standards & signals

Docs: https://docs.google.com/document/d/1wob4u9AER1kmUodqIEp78BuziSJChBl54A5ZRXPRCUI/edit#

Samples: https://irori.github.io/imagesrcset-demo/

View on chromestatus.com