-
- Downloads
[FIX] web: load editor assets in the right order
Before this commit, 50% of the time, the design of the editor in the website appeared broken. This was because the two editor assets (the web_editor one and the website one) are lazy loaded... but their load order was not deterministic. The bug was introduced with the new editor merged with https://github.com/odoo/odoo/pull/29775 . In fact the lazy loading system introduced by the `loadLibs` function of the ajax module was designed to allow sequential and/or parallel loading of JS files... but not of assets bundles (for CSS it is always forced to parallel because only the DOM order matters anyway). This commit shares the code to allow sequential and/or parallel loading of assets bundles. It also forces the asset bundle resources to be loaded after css and js resources. closes odoo/odoo#34544 Signed-off-by:Quentin Smetz (qsm) <qsm@odoo.com>
Please register or sign in to comment