godaddy-wordpress / godaddy-wordpress/coblocks

ISBAT run CoBlocks with WP core Gallery block without any performance issues

Open
#2,264 0 comments 0 reactions 0 assignees View on GitHub
[Priority] Low [Type] Bug
Dominant language
JavaScript
Stars
794
Forks
142
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug:
I should be able to run the CoBlocks plugin with the refactored core Gallery block included in WP 5.9 and Gutenberg plugin 12.5+ without any performance issues. Currently though, adding a core Gallery block to a post, while running the CoBlocks plugin, causes a significant delay in typing performances, and causes current tab CPU usage to go to 100% +

If [this filter](https://github.com/godaddy-wordpress/coblocks/blob/master/src/extensions/apply-extensions.js#L278) is commented out then the issue goes away.

### To reproduce:
1. Install WP 5.9 or GB plugin 12.5+ along with the latest CoBlocks plugin
2. Add a core Gallery block to a post with 10+ images
3. Add a paragraph after the Gallery block and try typing
4. Text can take several seconds after typing to appear

### Expected behaviour:
Running the CoBlocks plugin doesn't affect the performance of the core blocks at all

### Isolating the problem:
- [x] This bug happens with no other plugins activated
- [x] This bug happens with a default WordPress theme active
- [x] This bug happens **without** the Gutenberg plugin active
- [x] I can reproduce this bug consistently using the steps above

### WordPress version:
5.9

### Gutenberg version:
12.5

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.