-
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
Update the site editor for better initialization #47182
Conversation
Can you clarify what to look for? I'm not entirely sure what to look for. This is what I see: That looks good enough though, except for the navigation spinner, which is a separate issue: @getdave do you know if the big page list spinner is on your group's radar? Happy to open an issue if that's useful. |
Size Change: +108 B (0%) Total Size: 1.33 MB
ℹ️ View Unchanged
|
Basically this PR impacts all what happens before the content of the template is loaded. In trunk there's a white page followed by a gray page followed by the content being filled. In this PR the first two steps are with a white page + spinner and a simple white page, which makes less noise when you reload. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good to me.
As the viewport loads, it has square corners. Can it always have the same rounded corners as it has when it's loaded?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great improvement, @youknowriad 🙌
Flaky tests detected in 59f11c2. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/3930218957
|
Related #35503
What?
This PR polishes the loading state of the site editor a little bit. It doesn't solve the issue entirely (because we'll need Suspense for the different blocks loaders) but it introduces these two elements:
Testing Instructions
1- Open the site editor
2- Refresh the page
Compare to trunk and you may also throttle the network speed to experience the changes better.