summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2017-04-26 09:18:15 +0200
committerAaron Bohy <aab@odoo.com>2017-04-26 11:19:20 +0200
commitbead8452c262e81597cd87269ea008991cd20fed (patch)
tree0bb2c6d1ffb5bc1a6089d3cfa30976a1a262dc9a /addons/web/static/src/js/views/basic
parent8f9362809e91ff7c2876ab464017abb13a4e0974 (diff)
[FIX] web: Views: sequential lazy loading of libs
The views can specify js (and css) libraries to lazy load when they are instantiated for the first time. The previous implementation was too naive as it always loaded the specified libraries in parallel. However, it may happen (e.g. gantt view) that some of those libraries depend on other ones. This commit implements a mechanism to handle libs dependencies between each other. For instance, specifying: js_libs: [ ['a', 'b'], ['c'], ], will load 'a' and 'b' in parallel, but wait for them to be loaded before loading 'c'. The new implementation still supports the old syntax. So, js_libs: ['a', 'b', 'c'], will load 'a', 'b' and 'c' in parallel.
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions