-
Notifications
You must be signed in to change notification settings - Fork 427
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
fix(core): fix reference preview flickering and improve loading #7563
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
5a03eef
to
17880bb
Compare
75e3e83
to
21885ea
Compare
17880bb
to
f705d88
Compare
No changes to documentation |
21885ea
to
f98b189
Compare
f705d88
to
6cf26e9
Compare
f98b189
to
dd3efb0
Compare
6cf26e9
to
0f922a5
Compare
⚡️ Editor Performance ReportUpdated Mon, 07 Oct 2024 16:08:20 GMT
Detailed information🏠 Reference resultThe performance result of
🧪 Experiment resultThe performance result of this branch
📚 Glossary
|
8c005a2
to
2519fdb
Compare
Needs a new review after rebasing. The failing e2e tests are not related to the changes here and will be fixed by #7601 |
This matches the delay we already use in document lists
2519fdb
to
8e69238
Compare
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.
Thanks for this, been testing it and it makes a great difference!
Just a bit worried about the removal of the key in the document panel. There are not too many ways to test that, but it seems the panel is unmounted anyways when we are navigating to a new document.
Do you have any thoughts on that?
Description
This PR fixes various loading and rendering issues with reference previews. It should significantly reduce the number of re-renderings and layout shifts happening as we load what's needed to preview references in the Studio. These issues are particularily visible behind slower networks.
Here's before/after with network throttling set to 3g
Before
https://github.com/user-attachments/assets/1b87897e-0abf-49db-8a2e-edb3669e2353
After
https://github.com/user-attachments/assets/a37704a0-4b52-4f94-8f76-3a2101cc0f2e
Included some additional improvments here as well:
Element.checkVisibility()
if availableWhat to review
Testing
Should be covered by existing tests
Notes for release