Add display: none to img, the browser will still send image resource requests, how to prevent the browser from loading unnecessary image resources?
Add display: none to img, how to prevent the browser from loading unnecessary image resources?
Add display: none to img, the browser will still send image resource requests, how to prevent the browser from loading unnecessary image resources?
Add display: none to img, how to prevent the browser from loading unnecessary image resources?
2
Answers
Try
loading="lazy"
To prevent the browser from loading unnecessary image resources, you can try the following:
<img src="path/to/image.jpg" loading="lazy" alt="Description of the image">