Home > Enterprise >  Does the server send more than 1 images to <picture> tag with fallback?
Does the server send more than 1 images to <picture> tag with fallback?

Time:01-05

I am curious about Initial Load

As the viewport is decreased in size the next "useable" image is the called upon. Second image

In the example, there then are no "usable" images (once the viewport is too small) So it defaults to the given img tag (but this could equally be a source tag) Smallest image, no media queries are valid

Then, when the viewport is increased in size it goes back to the previous image because the media query permits it: Screen increased

Note: while the network tab shows that the image has been requested again, it is likely (based on common browser settings) that this request will actually be the cached image and the server won't do any work.

  • Related