Closed masakudamatsu closed 3 years ago
To avoid the layout shifts.
In CSS, make sure that height: auto is included so the aspect ratio won't be distorted.
height: auto
See https://web.dev/optimize-cls/ for detail.
The current LightHouse audit result:
After adding the width/height attributes:
To avoid the layout shifts.
In CSS, make sure that
height: auto
is included so the aspect ratio won't be distorted.See https://web.dev/optimize-cls/ for detail.