Support » Plugin: Atomic Blocks - Gutenberg Blocks Collection » Disable unused blocks

  • Many other Gutenberg plugins allow to disable the blocks that are never used, thus preventing the relative code from being loaded. Can you implement this feature? Shouldn’t be to hard. Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author atomicblocks

    (@atomicblocks)

    Hi there,

    WordPress has a block manager built into the editor, accessible by clicking the stoplight menu in the top right corner, as seen here. This will let you disable the blocks from appearing in the editor.

    Preventing the code from being output entirely is another task. That’s hard to do because block code (in most plugins) is compiled together in a single minified build file. Each block would need to be output as individual code to stop the output. Or perhaps an advanced tree shaking to remove unused code.

    This is something we’re looking at! We’re always trying to improve the performance of the plugin.

    Thread Starter outcats85

    (@outcats85)

    Thanks for your reply. If you check your competitors, most of them offer this option. And it does make sense since the whole idea of Gutenberg is to load the website faster.

    No point for me to load all the CSS for all the blocks when I actually just need a couple of them.

    Really hope you’ll implement this asap.

    Thanks

    I second this. It would also be helpful to be able to remove any blocks that we do not users to be able to select on an install.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable unused blocks’ is closed to new replies.