How does lazy loading images work?

When a user opens a website, the whole page’s contents are downloaded and rendered in a single go. While this allows the browser to cache the web page