-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Styles cause lag on Block insertion and selection #22823
Comments
It is interesting to note if this is visible to other blocks as well. |
Unfortunately I am unable to reproduce the visible lag. Still, the |
I will edit this issue to be more generic as Block styles, if the problem is observed consistently, are in all the blocks that support them, not just in navigation. |
I'm going to close this as I can't reproduce in incognito mode so I think it must be one of my extensions. |
Describe the bug
Inserting the Navigation block causes a perceivable lag in the editor interface before the block appears and is useable. This also happens when re-selecting the block having focused elsewhere.
The culprit appears to be the Block styles. This is likely due to the perf costs of rendering the
BlockPreview
component.To reproduce
Steps to reproduce the behavior:
master
branch.Expected behavior
There should be no perceivable lag.
Screenshots
Here are some videos to illustrate the issue.
styles
in place - https://d.pr/v/RSpTnJ.styles
removed - https://d.pr/v/kEV86xEditor version (please complete the following information):
master
.Desktop (please complete the following information):
cc @draganescu
The text was updated successfully, but these errors were encountered: