-
Notifications
You must be signed in to change notification settings - Fork 243
Adds Critical CSS extracted by SC to the actual render #505
Adds Critical CSS extracted by SC to the actual render #505
Conversation
Previously, it was never actually added to the markup, only extracted.
Zing, awesome stuff @oyeanuj! We'll need to get someone who uses |
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.
Perfect. Going to merge this
@sergiokopplin Seems like there are two parts to your question -
So, really this PR was making sure the above task was actually happening for |
|
@sergiokopplin Hm.. that sounds like a bug. You could check the @ctrlplusb @strues @diondirza might have more helpful answers. |
thanks @oyeanuj. if it's a bug, we should move this chat into an issue right? haha |
Previously, the styles were being extracted but not actually utilized anywhere. This PR extracts them as style elements and passes them to
<HTML />
element via<ServerHTML />
and ensures that they are rendered as part of the<HTML />
tag.So, it is only now SC with SSR is working. Additionally, no FoUC for the SC part (#322)
Edit: Re-purposed a doc change PR for this since I was on the same branch.