Skip to content
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

Custom HTML block - Extremely Slow when loading editor styles #43820

Closed
cb911nr opened this issue Sep 2, 2022 · 1 comment
Closed

Custom HTML block - Extremely Slow when loading editor styles #43820

cb911nr opened this issue Sep 2, 2022 · 1 comment
Labels
[Block] HTML Affects the the HTML Block [Type] Performance Related to performance efforts

Comments

@cb911nr
Copy link

cb911nr commented Sep 2, 2022

Description

For some reason the HTML Block widget, is extremely slow to type into when you're loading editor styles, the more you load the even slower it gets.

You can kind of see this with the Twenty Twenty One theme, compared to the Twenty Twenty Two, and then when we use our theme which loads even more editor styles, it is extremely bogged down..

Any ideas on how to stop that from bogging down based on the editor styles being loaded?

Step-by-step reproduction instructions

  1. Activate a theme that loads editor styles
  2. Add HTML Block widget
  3. Type into the HTML Block to see the performance differences

Screenshots, screen recording, code snippet

Twenty Twenty Two Theme (fastest, great):
twentytwentytwo

Twenty Twenty One Theme (slower):
twentytwentyone

Our Theme (even slower) (I was actively typing, so when all the text pops in that was not a copy and paste haha):
ourtheme

For fun here's our theme again, but I removed add_editor_style() css sheet we were loading. Way faster.
editorstylesremoved

Environment info

  • Wordpress Version 6.0.2
  • Whatever Gutenberg version comes with that above

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@t-hamano t-hamano added [Type] Performance Related to performance efforts [Block] HTML Affects the the HTML Block labels Sep 2, 2022
@Mamaduka
Copy link
Member

Mamaduka commented Sep 2, 2022

The issue was recently fixed via #42026. The fix will be available in WP 6.1.

@Mamaduka Mamaduka closed this as completed Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] HTML Affects the the HTML Block [Type] Performance Related to performance efforts
Projects
None yet
Development

No branches or pull requests

3 participants