Newly available Useful in modern browsers, but confirm support before making it a core requirement.

Browser support

Feature Desktop Mobile
Chrome
Edge
Firefox
Safari
Chrome Android
Safari iOS
73
79
78
17.2
73
17.2
HTML attribute
DOM API

The imageSrcset property of the HTMLLinkElement interface is a string which identifies one or more comma-separated image candidate strings. This property reflects the value of the link element's imagesrcset attribute. This property can retrieved or set the imagesrcset attribute value.

73
79
78
17.2
73
17.2
1+Supported (version) Not supported Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)

Syntax

HTML
<link rel="preload" as="image"
  imagesrcset="hero-400.jpg 400w, hero-800.jpg 800w, hero-1200.jpg 1200w"
  imagesizes="(max-width: 600px) 100vw, 50vw">

Live demo

Responsive image preload

The attributes that let a preload hint carry a responsive candidate set.

PreviewFullscreen

Why preload the hero image

Preloading helps when the browser would otherwise discover the right responsive source too late.

PreviewFullscreen

Preload guardrails

Keep the responsive hint aligned with the image actually used in the page.

PreviewFullscreen

Use cases

  • Control document behavior

    Use Preloading responsive images to influence loading, metadata, or script behavior at the document level.

  • Tune performance strategy

    Apply Preloading responsive images when earlier resource hints or document settings improve startup or runtime behavior.

Cautions

  • Test Preloading responsive images in your target browsers and input environments before depending on it as a primary behavior.
  • Provide a fallback path or acceptable degradation strategy when support is still limited.

Accessibility

  • Make sure Preloading responsive images supports the intended task without making the page harder to perceive, understand, or operate.