Various sized image resources

Has there ever been discussion about adding the ability of having different sized image assets, and the game would load the appropriate version based on the size of the screen? Similar to what is done with CSS ("@2x") and the HTML Picture element. For example, you could have:


And then the best image is loaded based on either 1) developer customization, or 2) the game intelligently comparing the screen dpi/size to the set game resolution.

Pixel art based games usually scale well, but not in all browsers (that pesky Safari). This would probably be most valuable for non-pixel art images.

**If this has been discussed before, I apologize. I searched several different terms but couldn’t find anything.