• After testing my site with pagespeed insight I’ve encountered an issue with the image from Starbox. It says “Image elements do not have explicit width and height.
    Set an explicit width and height on image elements to reduce layout shifts and improve CLS”.

    Also, I can see that my img in fact has no height attribute and only width set to 250 even though there is a note that I should upload a photo 80×80. How can I add the Height attribute and change the Width attribute for the image?

    <img src="https://examplesite.com/myphoto.jpg" width="250" alt="myphoto" />

    • This topic was modified 3 years, 9 months ago by mrbeckbordy.

The topic ‘Google PageSpeed Insights’ is closed to new replies.