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. |
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
templatesScreenshots or screencast