Mobile app version of vmapp.org
Login or Join
Sherry384

: Does image dimensions outside image tag also slow page loading? I am using height and width for images in css before img tag (css in same page header) so I think there is no need to set

@Sherry384

Posted in: #Css #Html #Images #Performance

I am using height and width for images in css before img tag (css in same page header) so I think there is no need to set dimensions in img tag.

But when I checked speed in different online tools, many tools are showing the message like "some images are missing height and width attributes. page can't be fully rendered until these images have been downloaded."

Am I doing wrong and should move height and width to img tags or these tools showing wrong? Anyone knows about which is best for speed?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Sherry384

1 Comments

Sorted by latest first Latest Oldest Best

 

@LarsenBagley505

The error message you are getting is simply an informative message telling you that without the width and height attributes the page load may slow down while the whole image is downloaded to the browser cache to be displayed, but if the image in question is the same size (IE: not larger than the area you are wanting to display it in) then you wont have any issues.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme