How can adding image resolution to the img tag improve network utilisation?

94 views Asked by At

Google Chrome has a tab in it's built in Developer Tools, and one of the audits are telling me that the Network Utilization can be improved by setting the specific width and height to ALL images on the page.

Chrome Audits

How true is this information and how does this change things?

3

There are 3 answers

0
Quentin On BEST ANSWER

Setting height and width will do absolutely nothing for network utilisation.

It will, however, allow the browser to lay the page out correctly before downloading the images (since it won't have to wait to download the image before it can know what size the image is). This can avoid reflowing the page or leaving it blank until the image size is known.

0
Adrien Horgnies On

It's so the browser can already prepare the correct space to put the image after loading it.

0
Nijraj Gelani On

While not improving network speed so much, it can lead to better user experience for users with low internet speed because of the reasons Quentin suggested.