TIL that you can use the
loading=lazy attribute to defer the loading of the
image until the user scrolls to them.
<img src='bananas.jpg' loading='lazy' alt='Bunch of bananas' />
MDN says this is experimental
Indicates how the browser should load the image:
eager: Loads the image immediately, regardless of whether or not the image is currently within the visible viewport (this is the default value).
lazy: Defers loading the image until it reaches a calculated distance from the viewport, as defined by the browser. The intent is to avoid the network and storage bandwidth needed to handle the image until it's reasonably certain that it will be needed. This generally improves the performance of the content in most typical use cases.
The other loading value is
eager which loads the image as soon as the page loads. This is the default.
Currently, not fully supported by all the browsers.