We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9827547 commit 49cc352Copy full SHA for 49cc352
src/js/editor.js
@@ -2,10 +2,19 @@
2
3
/* Customize BFFEditorSettings in inc/Services/Editor.php or with `bff_editor_custom_settings` filter (see readme). */
4
5
+import lazySizes from 'lazysizes'
6
import domReady from '@wordpress/dom-ready'
7
import { addFilter } from '@wordpress/hooks'
8
import { unregisterBlockStyle, getBlockVariations, unregisterBlockVariation } from '@wordpress/blocks'
9
10
+/**
11
+ * LazySizes configuration
12
+ * https://github.com/aFarkas/lazysizes/#js-api---options
13
+ */
14
+lazySizes.cfg.nativeLoading = {
15
+ setLoadingAttribute: false,
16
+}
17
+
18
// Native Gutenberg
19
domReady(() => {
20
// Disable specific block styles
0 commit comments