The srcset attributes on the img element can be used, using the x descriptor, to provide multiple images that only vary in their size
An HTMLImageElement has a currentSrc property so we can get the current source of an img element. Useful when defining …
javascript responsive-images srcset