From b49745e52d7a7bc27afd416206dcd5fa242aa07a Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Mon, 28 Jan 2019 09:39:56 +0000 Subject: [IMP] web_editor: lazy load the wysiwyg Issue: wysiwyg asset slow down the loading of the website, error inadvertently introduced: https://github.com/odoo/odoo/pull/29775 The assets are now loaded assynchroneously, when the editor is needed, its assets will be loaded. closes odoo/odoo#30700 --- addons/web/static/src/js/fields/abstract_field.js | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'addons/web/static/src/js/fields') diff --git a/addons/web/static/src/js/fields/abstract_field.js b/addons/web/static/src/js/fields/abstract_field.js index 37d2f22ef55..edc7c03ac02 100644 --- a/addons/web/static/src/js/fields/abstract_field.js +++ b/addons/web/static/src/js/fields/abstract_field.js @@ -35,8 +35,6 @@ var field_utils = require('web.field_utils'); var Widget = require('web.Widget'); var AbstractField = Widget.extend({ - cssLibs: [], - jsLibs: [], events: { 'keydown': '_onKeydown', }, @@ -182,14 +180,6 @@ var AbstractField = Widget.extend({ this.resetOnAnyFieldChange = true; } }, - /** - * Loads the libraries listed in this.jsLibs and this.cssLibs - * - * @override - */ - willStart: function () { - return $.when(ajax.loadLibs(this), this._super.apply(this, arguments)); - }, /** * When a field widget is appended to the DOM, its start method is called, * and will automatically call render. Most widgets should not override this. -- cgit v1.2.3