Codeinwp / otter-blocks

Create beautiful and attracting posts, pages, and landing pages with Gutenberg Blocks and Template Library by Otter.
https://wordpress.org/plugins/otter-blocks/
GNU General Public License v3.0
133 stars 33 forks source link

Check Blocks CSS plugin for performance #2056

Closed HardeepAsrani closed 6 months ago

HardeepAsrani commented 7 months ago

Description

A used described particular scenarios that causes blocks to re-render: https://wordpress.org/support/topic/when-loaded-causes-uagb-forms-to-update-save-for-every-keystroke/cause

We can confirm it doesn't happen with other extensions either.

Step-by-step reproduction instructions

OK, to reproduce:

https://playground.wordpress.net/?plugin=blocks-css&plugin=ultimate-addons-for-gutenberg&php=8.3&wp=6.4&storage=none&php-extension-bundle=kitchen-sink
Edit Site
Create synced pattern ‘form’
Add a ‘form’ block from uagb, accept default
Create a page
create a paragraph w/ a few words
insert the ‘form’ synced pattern
in console, run ‘monitorEvents(window);’
type a key in the paragraph from #6

You will observe a constant stream of ‘Updated Block: uagb/forms’ messages in console, one for each keystroke.

Also, the system will be exceptionally slow.

Screenshots, screen recording, code snippet or Help Scout ticket

No response

Environment info

No response

Is the issue you are reporting a regression

No

pirate-bot commented 6 months ago

:tada: This issue has been resolved in version 2.6.3 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: