diff --git a/addons/web_editor/static/src/js/editor/snippets.options.js b/addons/web_editor/static/src/js/editor/snippets.options.js index e7468e21050..9da8466cdf7 100644 --- a/addons/web_editor/static/src/js/editor/snippets.options.js +++ b/addons/web_editor/static/src/js/editor/snippets.options.js @@ -5431,6 +5431,11 @@ const ImageHandlerOption = SnippetOptionWidget.extend({ weightEl.classList.add('o_we_image_weight', 'o_we_tag', 'd-none'); weightEl.title = _t("Size"); this.$weight = $(weightEl); + // Perform the loading of the image info synchronously in order to + // avoid an intermediate rendering of the Blocks tab during the + // loadImageInfo RPC that obtains the file size. + // This does not update the target. + await this._applyOptions(false); }, //--------------------------------------------------------------------------