Opened 2 years ago
Closed 2 years ago
#62315 closed defect (bug) (fixed)
Global styles: preload `/global-styles` endpoint responses [regression]
| Reported by: | ramonopoly | Owned by: | ramonopoly |
|---|---|---|---|
| Priority: | high | Milestone: | 6.7 |
| Component: | Editor | Version: | |
| Severity: | major | Keywords: | has-patch dev-reviewed |
| Cc: | Focuses: |
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.
2 years ago
#2
#6
@
2 years ago
Reopening so that this regression fix can be considered for backporting to 6.7.
Thank you!
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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