Opened 6 months ago
Closed 6 months ago
#62315 closed defect (bug) (fixed)
Global styles: preload `/global-styles` endpoint responses [regression]
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 6.7 | Priority: | high |
Severity: | major | Version: | |
Component: | Editor | Keywords: | has-patch dev-reviewed |
Focuses: | Cc: |
Description
A PR to track the backporting of https://github.com/WordPress/gutenberg/pull/66468
This fixes a regression whereby requests to global styles endpoints were not being preloaded, resulting in several requests being fired clientside unnecessarily.
For performance reasons, we should preload the requests so that the data is in the store and ready to use straight away.
The outcome is that the editor loads more quickly.
Change History (8)
This ticket was mentioned in PR #7661 on WordPress/wordpress-develop by @ellatrix.
6 months ago
#2
#3
@
6 months ago
- Owner set to ramonopoly
- Resolution set to fixed
- Status changed from new to closed
In 59316:
#5
@
6 months ago
- Keywords dev-feedback added
- Resolution fixed deleted
- Status changed from closed to reopened
#6
@
6 months ago
Reopening so that this regression fix can be considered for backporting to 6.7.
Thank you!
Note: See
TracTickets for help on using
tickets.
A PR to track the backporting of https://github.com/WordPress/gutenberg/pull/66468
This fixes a regression whereby requests to global styles endpoints were not being preloaded, resulting in several requests being fired clientside unnecessarily.
For performance reasons, we should preload the requests so that the data is in the store and ready to use straight away.
The outcome is that the editor loads more quickly.
### Testing
Fire up this branch and head to the site editor.
Check that global-styles endpoints aren't fetched client side, but are, rather, preloaded via rest_preload_api_request
Do the same for the post editor.
Trac ticket: https://core.trac.wordpress.org/ticket/62315