Jump to content

Improve CLS on mobile


Alexandre MAS

Recommended Posts

PRESTA 1.7.5.1 - theme MEGASHOP

Dear Community,

I face a problem I don't manage to solve alone, would you have a solution?

Google search consol tells my CLS is higher than 0,25s on mobile (criticality high).

I guess it is because the width and height of the product picture is not define.

<img class="js-qv-product-cover" src="https://ouikeep.fr/213-large_default/plage-arriere-renault-kangoo-ii-et-mercedes-citan.jpg" alt="Plage arrière - RENAULT Kangoo II et MERCEDES Citan" title="Plage arrière - RENAULT Kangoo II et MERCEDES Citan" style="width:100%;" itemprop="image">

I see here I could define width and height and change the behavior for mobile in CSS ?

https://web.dev/optimize-cls/

Thank you for your help,

Alexandre

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...