-
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
Navigation: Preload API requests #24642
Comments
Doesn't look like we can use |
Some preloading was added in #34364 However, there are still a number of API requests that are not preloaded. The one I could not work out in my testing was I still think we should revisit this ticket and try preload a much as data possible. It worth nothing, you are avoid preloaded data, by just adding a query string to REST API request. Like this.
|
I think the It should go away if #34839 makes it in. edit: worth noting that |
@anton-vlasenko are you sure you haven't got a filter on? Looks like there is something in the search field... Here is a screencast of my screen. Screen.Recording.2021-09-21.at.22.53.43.movThe following requests should be preloaded
We should also remove call to |
@spacedmonkey Thank you for the screencast! |
When loading the Navigation screen, there are a lot of loading spinners due to API requests to
/menus
and/menu-items
. We should preload these requests so that the screen appears faster.For reference, here's how
edit-site
does this:gutenberg/lib/edit-site-page.php
Lines 153 to 172 in f62d5ea
The text was updated successfully, but these errors were encountered: