I heard that chrome has implemented native lazy-loading for "img" elements, and that firefox will soon follow suit.
The explanations I found for this tell that when you add an attribute loading="lazy" to the img element, it will only request the src url when the browser considers it "close" to the viewport, the definition of "close" depending on the actual available bandwidth.
My question is actually about memory consumption. After a lazy-loaded image is actually loaded, and it goes sufficiently far away of the viewport, will the browser release the memory, lazy-loading it again (presumably from the disk cache) when it is necessary?