Website Lazy Load Images
website_lazy_load_image · OCA/website
Health
42/100
poor
-
Security25/25No findings
-
Activity0/25Last human commit 42 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 11.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.07 MB
Module directory on disk
Code analysis
0 migration notes
1 model
2 views
0 HTTP endpoints
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
assets_frontend |
assets_frontend | ir.ui.view | qweb | Inherits web.assets_frontend |
snippet_options |
snippet_options | ir.ui.view | qweb | Inherits website.snippets |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 1
New fields (0)
No new fields.
Public methods (1)-
render_template(self, template, values=None, engine='ir.qweb')@api.modelReplaces 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.
Loading…