- Execute the index.html file in the browser.
- Open the developer tools.
- Choose the "Network" option.
- Press the "Add image" button a couple of times.
- In the "Network" section you will see that only the images visible in the viewport will be downloaded. The rest of them will be downloaded as you scroll.
- HTML
- CSS
- JavaScript
- Live Site URL: Preview Site