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