-
Notifications
You must be signed in to change notification settings - Fork 148
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
Layout selector performance improvements #1577
Conversation
Test summaryRun details
View run in Cypress Dashboard ➡️ Failures
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
@jrtashjian Can you take a look at the conflict? Pretty sure it's only because we took out image fetch. |
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.
This LGTM. Small changes on the LayoutPreview markup only.
Description
The way we were using the BlockPreview component from Gutenberg was very slow when loading more than 5 previews in a list. With the release of Block Patterns in Gutenberg I've recognized performance improvements that were made in core where they BlockPreview component was being used inth block inserter. This PR takes those findings and implements them here.
The result is a more snappy interaction when interacting with the previews and no delay in interacting with the layout selector while previews load.
Types of changes
Enhancement
How has this been tested?
This has been tested manually with 1, 5, 10, 20, 50, and 100 layouts being added through the available filters in PHP.
Checklist: