Online store performance and site speed optimization
I have big Cumulative Layout Shift on google core vital web . Google message "Image elements do not have explicit width and height". I use supply theme. I am not sure which class I should add "height: auto" on the timber.scss.liquid. Please help.
Adding height: auto is useless for your goals.
You need to add a height and width attribute to each image element you want to fix.
So for example, if an image was formatted like
<img src="{{ image | img_url: '500x' }}" >
Then you would an height and image attributes using the hieght and width properties of the image object
<img height="{{ image.height }}" width="{{ image.width}}" src="{{ image | img_url: '500x' }}" >
On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023You've downloaded the Search & Discovery app from the Shopify App store, and as you're ...
By Skye Nov 8, 2023The year-end shopping season is just around the corner. Is a flash sale on your radar? Are...
By Jasonh Nov 6, 2023