Editor: Add lazy-editor package and infrastructure#73028
Conversation
|
Size Change: +12.8 kB (+0.52%) Total Size: 2.47 MB
ℹ️ View Unchanged
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Flaky tests detected in 3124b72. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/19134693371
|
closes #72982
What and Why?
Adds a new lazy-editor package to improve the loading performance of the editor. It's kind of experimental for now and only used in the boot package to support rendering the selected post in the canvas. Let's prove it in this separate context and bring it later to the site editor (might require some BC / fallback handling)
How?
New Packages:
@wordpress/asset-loader: Utility for dynamically loading WordPress scripts/styles with dependency resolution@wordpress/lazy-editor: Lazy-loading editor component with automatic asset and settings managementBoot Package Changes:
canvas()function to specify what to renderTesting Instructions
http://localhost:8888/wp-admin/admin.php?page=gutenberg-boot&p=%2Ftypes%2Fpost%2Flist%2Fall