-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Remove block assets enqueuing from editor document #54250
base: trunk
Are you sure you want to change the base?
Conversation
This pull request has changed or added PHP files. Please confirm whether these changes need to be synced to WordPress Core, and therefore featured in the next release of WordPress. If so, it is recommended to create a new Trac ticket and submit a pull request to the WordPress Core Github repository soon after this pull request is merged. If you're unsure, you can always ask for help in the #core-editor channel in WordPress Slack. Thank you! ❤️ View changed files❔ lib/client-assets.php |
Size Change: +93 kB (+6%) 🔍 Total Size: 1.62 MB
ℹ️ View Unchanged
|
Flaky tests detected in f50d91f. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6186862966
|
3065028
to
f50d91f
Compare
@ellatrix is this still slated for 6.4? I'm not seeing moving in over a month and, at this point with RC1 out, we have to narrow what we are comfortable merging. |
It's not needed |
What?
This PR removes enqueuing of block assets (meant for editor content) from the main editor document. For the iframed editor, these assets are already loaded inside the iframe, so they are not needed and currently loaded twice. For the non iframed editor, they should still be loaded in the main editor document, so we can render them only when needed.
Why?
For the iframed editor (most cases), the assets are loaded twice.
Fixes #53590.
How?
Testing Instructions
Load the editor. Everything should look as expected.
Run the following script:
The iframe will be removed, but everything should look the same.
Testing Instructions for Keyboard
Screenshots or screencast