Website Lazy Load Images

website_lazy_load_image
REPOSITORY
REPOSITORYOCA/website
GIT
GIThttps://github.com/OCA/website.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/website/tree/12.0/website_lazy_load_image
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYWebsite
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Onestein
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Onestein
COMMITTERS
COMMITTERSJairo Llopis, OCA Transbot, oca-travis, Weblate, OCA-git-bot, Simone Rubino, Simone Orsi
WEBSITE
WEBSITEhttps://github.com/OCA/website
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:24
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - website
    - web
    - base
    - web_editor
    - http_routing
    - portal
    - mail
    - base_setup
    - bus
    - web_tour
    - social_media
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
assets_frontend assets_frontend ir.ui.view qweb Inherits web.assets_frontend
snippet_options snippet_options ir.ui.view qweb Inherits website.snippets
Models touched (1)

New fields (0)

No new fields.

Public methods (1)
  • render_template(self, template, values=None, engine='ir.qweb')
    @api.model
    Replaces the src attribute with a data-src attribute for all img elements without the 'lazyload-disable' css class. We use LAZYLOAD_DEFAULT_SRC to prevent showing a broken image icon when the JS is not loading yet.
REPOSITORY
REPOSITORYOCA/website
GIT
GIThttps://github.com/OCA/website.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/website/tree/11.0/website_lazy_load_image
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYWebsite
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Onestein
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Onestein
COMMITTERS
COMMITTERSJairo Llopis, oca-travis, OCA-git-bot, tarteo
WEBSITE
WEBSITEhttps://github.com/oca/website
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:24:02
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - website
    - web
    - base
    - web_editor
    - web_planner
    - http_routing
    - portal
    - mail
    - base_setup
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
assets_frontend assets_frontend ir.ui.view qweb Inherits web.assets_frontend
snippet_options snippet_options ir.ui.view qweb Inherits website.snippets
Models touched (1)

New fields (0)

No new fields.

Public methods (1)
  • render_template(self, template, values=None, engine='ir.qweb')
    @api.model
    Replaces the src attribute with a data-src attribute for all img elements without the 'lazyload-disable' css class. We use LAZYLOAD_DEFAULT_SRC to prevent showing a broken image icon when the JS is not loading yet.