[wp-trac] [WordPress Trac] #55337: Optimize preload paths for post and site editors

WordPress Trac noreply at wordpress.org
Fri Mar 25 21:48:59 UTC 2022


#55337: Optimize preload paths for post and site editors
------------------------------+-----------------------
 Reporter:  jsnajdr           |       Owner:  audrasjb
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  5.9.3
Component:  Editor            |     Version:  trunk
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+-----------------------
Changes (by audrasjb):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"52995" 52995]:
 {{{
 #!CommitTicketReference repository="" revision="52995"
 Editor: Optimize preload paths for post and site editors.

 This patch optimizes preload paths in post and site editors so that they
 match the real requests:

 - Remove the `/` preload as the payload is very big and the response is
 not needed on any critical path.
 - Modify the preloaded path for `/wp/v2/taxonomies` so that it corresponds
 to what `loadTaxonomyEntities` requests. After Gutenberg PR 37685 was
 merged to core, these preloads need to be modified to use `context=view`
 instead of `context=edit`.
 - Modify the `/wp/v2/users/me path` so that it matches the real request
 (no query params).
 - Add a preload of `/wp/v2/settings` because it is requested on critical
 path (editor boot). Site editor already preloads this, the changeset is
 only adding it to the post editor.

 This is related to Gutenberg PR 39256 which introduces compatibility code
 to modify the preload paths with a filter, when the Gutenberg plugin is
 active.

 See https://github.com/WordPress/gutenberg/pull/39256.

 Props jsnajdr, noisysocks.
 Fixes #55337.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55337#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list