-
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
Post Editor: Preload templates post type permissions #42209
Conversation
Hmm, I think this should go into the |
6.1 is the next planned WordPress release so I think you have it right. |
Just to be clear, you're talking about the Here's a sincere question that I do not know the answer to that I think warrants discussion: do you think it's worth preloading REST API requests for components that are in the sidebar? Preloading a REST API request makes a component appear faster but comes at the cost of increasing TTFB because the server has to perform more database requests. For a component which is a primary part of the user interface (e.g. If we decide "no" then an alternative is to keep the REST API requests happening after page load but improve the loading state of these components e.g. display a placeholder. Would like to know what you think! |
@noisysocks, that's more of a visible side effect.
Maybe not everything, but OPTIONS request used for capabilities shouldn't be heavy on the server. |
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.
Alright 👍
This is a path for following changes in the Gutenberg plugin: * [WordPress/gutenberg#42209 #42209: Post Editor: Preload templates post type permissions] * [WordPress/gutenberg#42413 #42413: Post Editor: Avoid 403 errors for users with low permissions]. Follow-up to [43815], [44172], [46110], [51962], [52995]. Props Mamaduka, bernhard-reiter, TimothyBlynJacobs. See #56467. git-svn-id: https://develop.svn.wordpress.org/trunk@54084 602fd350-edb4-49c9-b593-d223f7449a82
This is a path for following changes in the Gutenberg plugin: * [WordPress/gutenberg#42209 #42209: Post Editor: Preload templates post type permissions] * [WordPress/gutenberg#42413 #42413: Post Editor: Avoid 403 errors for users with low permissions]. Follow-up to [43815], [44172], [46110], [51962], [52995]. Props Mamaduka, bernhard-reiter, TimothyBlynJacobs. See #56467. Built from https://develop.svn.wordpress.org/trunk@54084 git-svn-id: http://core.svn.wordpress.org/trunk@53643 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This is a path for following changes in the Gutenberg plugin: * [WordPress/gutenberg#42209 #42209: Post Editor: Preload templates post type permissions] * [WordPress/gutenberg#42413 #42413: Post Editor: Avoid 403 errors for users with low permissions]. Follow-up to [43815], [44172], [46110], [51962], [52995]. Props Mamaduka, bernhard-reiter, TimothyBlynJacobs. See #56467. Built from https://develop.svn.wordpress.org/trunk@54084 git-svn-id: https://core.svn.wordpress.org/trunk@53643 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This is a path for following changes in the Gutenberg plugin: * [WordPress/gutenberg#42209 #42209: Post Editor: Preload templates post type permissions] * [WordPress/gutenberg#42413 #42413: Post Editor: Avoid 403 errors for users with low permissions]. Follow-up to [43815], [44172], [46110], [51962], [52995]. Props Mamaduka, bernhard-reiter, TimothyBlynJacobs. See #56467. git-svn-id: https://develop.svn.wordpress.org/trunk@54084 602fd350-edb4-49c9-b593-d223f7449a82
This is a path for following changes in the Gutenberg plugin: * [WordPress/gutenberg#42209 #42209: Post Editor: Preload templates post type permissions] * [WordPress/gutenberg#42413 #42413: Post Editor: Avoid 403 errors for users with low permissions]. Follow-up to [43815], [44172], [46110], [51962], [52995]. Props Mamaduka, bernhard-reiter, TimothyBlynJacobs. See #56467. Built from https://develop.svn.wordpress.org/trunk@54084
This is a path for following changes in the Gutenberg plugin: * [WordPress/gutenberg#42209 #42209: Post Editor: Preload templates post type permissions] * [WordPress/gutenberg#42413 #42413: Post Editor: Avoid 403 errors for users with low permissions]. Follow-up to [43815], [44172], [46110], [51962], [52995]. Props Mamaduka, bernhard-reiter, TimothyBlynJacobs. See #56467. git-svn-id: https://develop.svn.wordpress.org/trunk@54084 602fd350-edb4-49c9-b593-d223f7449a82
What?
Resolves #33994.
PR adds preloading for templates post-type permissions.
Why?
We usually preload permissions for the post types used in the editor. It also improves the time to render a bit for the PostTemplate component.
Testing Instructions
templates
Screenshots or screencast