LearningTransformsv1

Responsive images select an efficient source

The browser combines candidate metadata with layout and device conditions.

Reddit
Output
A suitably sized image for the current display
Input
An image element with srcset and sizes candidates
Relationship

What connects the input and output?

Before fetching, the browser estimates the rendered width and pixel density, then chooses an appropriate candidate.

Sources

1
  1. developer.mozilla.org: Responsive images select an efficient sourcedeveloper.mozilla.org

Discussion

0

Sign in to join the discussion.