From 49cc352c0063f3313da1abc00c971a94fe56a520 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ce=CC=81dric=20Andrietti?= Date: Fri, 3 Apr 2026 16:16:12 +0200 Subject: [PATCH] Fix ari image not display in editor --- src/js/editor.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/js/editor.js b/src/js/editor.js index 8e2d557d..e9237d04 100644 --- a/src/js/editor.js +++ b/src/js/editor.js @@ -2,10 +2,19 @@ /* Customize BFFEditorSettings in inc/Services/Editor.php or with `bff_editor_custom_settings` filter (see readme). */ +import lazySizes from 'lazysizes' import domReady from '@wordpress/dom-ready' import { addFilter } from '@wordpress/hooks' import { unregisterBlockStyle, getBlockVariations, unregisterBlockVariation } from '@wordpress/blocks' +/** + * LazySizes configuration + * https://github.com/aFarkas/lazysizes/#js-api---options + */ +lazySizes.cfg.nativeLoading = { + setLoadingAttribute: false, +} + // Native Gutenberg domReady(() => { // Disable specific block styles