Archived topic
Image elements do not have explicit width and height
3 replies · Started by Brandon on September 20, 2021
I'm trying to improve my Core Vitals. I keep getting this error message on my logo image.
I saw where David suggested adding is-logo-image within the "Excluded images or iframes" Lazyload section of WP Rocket.
I added the code, but I'm still getting the same error when I run Pagespeed insights.
Any suggestions on how I can correct this? Thanks!
Hi Brandon,
The error is coming from the site's mobile header. I'm not exactly sure if WP Rocket removes the image height and width attribute.
Can you try completely disabling WP Rocket and let us check to see if it's the case? Let us know. :D
Hi Elvin,
Sorry for the delayed response. I have disabled WP Rocket. Appreciate your help!
I'm still seeing WP Rocket activated in the source code.
Can you confirm?
Thanks.