-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Site editor: reduce artificial loading delay from 1s to 100ms #57953
Conversation
Size Change: 0 B Total Size: 1.7 MB ℹ️ View Unchanged
|
So looking at #50222, it sounds like we should be able to reduce this number as the editor loads faster in JS, since the requests made by blocks should get made more quickly. |
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.
I agree 1s seems to much to me as an artificial delay. Event 100ms is probably too much but it's better.
I would love to know how to test so we can tweak it further. @tyxla? |
Thanks, @ellatrix! Back in the day, we did add 1s with the intent to try reducing it at some point (see this commit). I'm glad that as editor performance generally improved, we were able to reduce this so much. |
I'm going to give it a spin now FWIW, haven't tested it yet. Will report back, since it's been a while since I worked on this. |
Works well in my tests. Thanks again! |
@tyxla Could you share how you're testing this? :) |
I'm just loading the site editor ( |
What?
1 second is way too much in my opinion to be artificially delaying loading of the site editor. Note that this is a delay that happens after all requests are resolved, so everyone is waiting 1 second longer than needed, making the site editor feel unnecessarily slow. 100ms should probably be enough the capture the brief moments between a request resolving and a request starting.
It's also unclear which pauses between which requests this is supposed to address. Where does the delay come from? Are all requests not started at the same time?
First introduced by #50222.
Why?
How?
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast