Determine which image is loaded in an HTML 5 img srcset

Does anyone know how to determine which image Firefox loads when using the new HTML 5 attribute, which is used to load a different image depending on the resolution of the screen or device upon which the web page is being opened?

The only way I can think of is to check all of the images to see which one is in the cache, but this depends on whether the image is actually stored in the cache.

I want to save the currently displayed image and not download the images that have a different resolution. I need to add this functionality to my “Save Images” add-on.

1 Like

Awesome question! It would definitely get more attention over at stackoverflow though. stackoverflow.com/tagged/html5