Articles on: Features

Add missing width and height

Adding width and height attributes to images will reduce the Cumulative Layout Shift (CLS) caused by images.

Before:

![](https://storage.crisp.chat/users/helpdesk/website/c7749a8cbac5f800/d45271b8-521d-44e8-baee-b48f8f_1yokhf0.png)


After:

![](https://storage.crisp.chat/users/helpdesk/website/be64a60411af5800/c8b78fa2-6b64-4ed4-bc19-a3312d_1l5m7eg.png)


Compatibility



Width and height attributes can be added to images only on your server. It won't be added to external images.
If an image already has width and height attributes added, it will be skipped.

Updated on: 23/06/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!