-
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
Editor: Interaction triggering drastic browser repaint #23427
Comments
Yeah it is laggy for me too, I think this is by design to redraw everytime you time something... |
@ellatrix Hmm! Strange.. The entire screen flashes for me. It happens for both TwentyTwenty and TwentyNineteen themes. I do think I've figured out something for scrolling (and some overall flashing) It's a combination of adjusting the Note: I'm not saying the suggestions above are the best solutions! I'm sure adjust Popover things is quite risky. Just sharing what I've found so far :) |
Interesting update!! My investigation is leading me to believe that maybe it's something keyboard event related. Maybe. Check this out: In the above video... I've added a random On top of that. Spamming keys into the A simple non-connected component shouldn't lag when typing 🤔 |
Can you please tell how to highlight the element like you do? I am using Chrome... |
@alexvornoffice Oh sure thing! I recorded a quick screencast walkthough. Hope this helps! |
Continuing my poking... It looks like removing I don't think removing |
Updates! Ah ha!!! I think I may know what's happening. The various scrollable areas (most notably body and sidebar) are using a combination of However, since none of these values are really "fixed" (e.g. I may have a work around for this. Stay tuned! |
As @ItsJonQ found out, the overflow: auto; triggers a lot of repaint both when typing but also every time a popover is added to the DOM. Here's a video of the issue : Screen.Recording.2022-12-05.at.14.21.43.movWhen changing
|
Describe the bug
I've noticed some lagginess with my local development. At first, I thought it may have been my computer. I did some testing, and it looks like there's some serious repainting happening in the editor - specifically from typing and scrolling.
I've recorded a video demo:
https://d.pr/v/NeLmSy
Every letter I type or every pixel I scroll triggers the entire page to redraw.
This can be tested by...
Esc
to show extra panelEditor version (please complete the following information):
master
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: