Website Prevent Cumulative Layout Shift (CLS)
This module can improve the Google PageSpeed score of individual website pages.
In particular, it improves the score for Cumulative Layout Shift(CLS) by adding the width and height to the images in the page.
It also provides quick access to adjust the Width/height instead of using the default optimize option when uploading an image.
auto_awesome What this module does
AI-generated from the code · Odoo 13.0Automatically adds width and height attributes to images on your website pages, which helps prevent layout shifts and improves the Google PageSpeed score. It also lets you set image width and height directly in the image editor dialog.
This module improves how images are displayed on website pages so that the page content does not jump around while loading.
- When an image is rendered on a website page, the system automatically calculates its real width and height and adds these as attributes to the image tag. This is what prevents the layout shift.
- In the website editor, when you edit an image, a new "Size" section appears in the image dialog with Width and Height fields (in pixels). You can type the exact dimensions you want.
- When you upload or select an image through the media widget, the image's width and height are also applied automatically.
The module works behind the scenes on the image rendering used by the website builder (ir.qweb.field.image) and the general page rendering (ir.qweb). It only changes how images are output; it does not add new menus or reports. The visible change for users is the extra Width/Height fields in the image editing dialog and better page stability when loading.
Depends on
Models and fields (1)
- ir.qweb.field.image · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 13.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub
Availability by version
Reviewed: 2026-11-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 13.0
Confirmed on 2026-11-03 in branch 13.0 of OCA/website.
terminal Installation and usage
OCA documentation · Odoo 13.0Usage
Source · Odoo 13.0To use this module:
- By default, it will add the selected width/height when uploading a new image
- When editing the image, in the Description pop-up, there's a provision to adjust the size.
No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.