Lazy Editor: Fix Media Library loading#73176
Conversation
|
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. |
|
Going to merge this to fix the issues, but we can iterate on it later. I'd appreciate if you can look @jsnajdr when you have time. |
|
If all we need are really just the templates and nothing else, we could call I can try out if the boot page continues to be fixed with that simplification. |
|
AFAIK, we need to enqueue the scripts as well and the scripts make use of the templates. |
|
In that case this current implementation is probably the best we can do, I don't immediately see a better/simpler way to do it. The |
What?
Related #72982
When trying to load the editor lazily, it needs the media library for the media upload buttons... The issue though is that the media library scripts need html templates to function properly. So this PR loads the scripts and the templates.
Testing Instructions