Site Editor: Fix classic theme site preview flickering#69480
Site Editor: Fix classic theme site preview flickering#69480karthikeya-io wants to merge 1 commit intoWordPress:trunkfrom
Conversation
|
👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @karthikeya-io! In case you missed it, we'd love to have you join us in our Slack community. If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information. |
|
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. |
|
This makes sense and I like that it avoids a flash of white background before the page loads. Thanks for putting it together. 🙇 I’m hoping we can go with a solution that doesn’t use the I’ve taken a look at avoiding the |
|
Agreed. Handling the admin bar rendering on the server side seems to be the right direction. Closing this in favor of the recent updates: #69474 (comment). |
What?
Closes #69474
Fix classic theme site preview flickering
Why?
To prevent flickering and layout shift while the page is loading
How?
Hide the site-preview until other styles are applied .
Testing Instructions
(Test it with
Fast 4gor lower speeds in the network tab of the inspector as this issue is more prominent at lower speeds)Testing Instructions for Keyboard
Screenshots or screencast
Before
flickering-before.mov
After
flickering-after.mov