Does adding width and height to inline images increase page loading performance?

Does the width and height of inline images increase page performance?

<img id="moon" height="200" width="450" 
      src="http://www.domain.com/moon.png" alt="moon image" />

Compare with this

<img id="moon" src="http://www.domain.com/moon.png" alt="moon image" />
+3
source share
2 answers

I don’t think that this will speed up the page loading, but it will help to display the page correctly, because the browser knows the image sizes for the correct page layout before it should receive the image

+5
source

. , . , . , .

, . . .

+2

Source: https://habr.com/ru/post/1743596/


All Articles