Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Opt-in to print styles for rendered blocks only and inlining them #49

Merged
merged 2 commits into from
Oct 8, 2021

Conversation

aristath
Copy link
Member

@aristath aristath commented Oct 7, 2021

This PR adds path data to the main stylesheet, and enables support to only load styles for rendered blocks.
The result is that (depending on the blocks used in the content), the browser gets everything in a single request (or as few requests as possible), further improving performance.

@aristath aristath force-pushed the add/styles-performance-improvement branch from 9c4896c to 88cef55 Compare October 8, 2021 07:37
@aristath
Copy link
Member Author

aristath commented Oct 8, 2021

Rebased the PR to fix conflicts 👍

@aristath aristath mentioned this pull request Oct 8, 2021
Copy link
Collaborator

@jffng jffng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merging this as we'll need it if / when any CSS is added.

@jffng jffng merged commit 6c28c46 into WordPress:trunk Oct 8, 2021
@aristath aristath deleted the add/styles-performance-improvement branch October 11, 2021 05:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants