Site editor - what options are there for preloading content? #35942
Labels
[Feature] Site Editor
Related to the overarching Site Editor (formerly "full site editing")
REST API Interaction
Related to REST API
[Type] New API
New API to be used by plugin developers or package users.
What problem does this address?
Continues the discussion from #35746 (review)
Currently the site editor loads much of its content asynchronously. The nature of template part (and other FSE) blocks is that they each load their own content, which results in a slow first interaction for the user, visible loading states on the screen, and content moving around.
What is your proposed solution?
I've outlined one, but it's worth discussing options. Also not sure if there are prior discussions about this. I did a search, but couldn't find anything.
There are some challenges. Firstly the full content for a template in the site editor isn't known until each layer resolves. A (pseudocode) template might contain content like:
We don't know what content is inside the header, body and footer until those are preloaded. Those template parts might contain other template parts, reusable blocks or other blocks that also need to be loaded, and then the whole process repeats like a preloading matryoshka.
So a preloading system would ideally have two qualities:
A potential solution could be:
preload_paths
system works?The text was updated successfully, but these errors were encountered: