Lazy Loading Gutenberg block content?
-
I’m trying to build a set of blocks similar to the core/query and core/post-template blocks, but I’d like the ability to lazy load the block using the intersection observer javascript API.
Is there some method I can use to prevent some of the block’s code from running until the intersection observer is triggered (ie the block has entered the viewport)?
The topic ‘Lazy Loading Gutenberg block content?’ is closed to new replies.