Archived topic
width and height attributes in the HTML
1 reply · Started by Peter on November 19, 2018
Hi GP,
I just ran a SEO test for our website.
In the recommendations it says that; "Some images don't have defined sizes using width and height attributes in the HTML. These attributes are optional, but strongly recommended as they help the browser arrange the page more quickly."
The images in question are all versions of the logo.
Is there a way I can assign width and height attributes in the HTML?
I have been looking at the .php-files in GP, but I don't want to change anything before I hear from you, and furthermore I am not sure in which file I should add this.
Maybe it can be done through a hook?
Thanks and cheers
P.
Hi there,
i wouldn't be worried about the missing attributes on the site logo, it won't effect the SEO.
This has more to do with user experience than performance. The attributes provide a placeholder whilst an image loads so there is no noticeable jump in the page rendering. So very important if it was a larger image within the content but not for the tiny logo file.