-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
SX: implement styles rehydration #4039
Draft
mrtnzlml
wants to merge
1
commit into
master
Choose a base branch
from
sx_rehydrate_styles
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mrtnzlml
force-pushed
the
sx_rehydrate_styles
branch
from
March 5, 2022 19:35
5a40cf7
to
4138138
Compare
vercel
bot
temporarily deployed
to
Preview – universe-sx-tailwind-website
March 5, 2022 19:35
Inactive
mrtnzlml
force-pushed
the
sx_rehydrate_styles
branch
from
March 5, 2022 20:10
4138138
to
d21e158
Compare
vercel
bot
temporarily deployed
to
Preview – universe-sx-tailwind-website
March 5, 2022 20:11
Inactive
mrtnzlml
force-pushed
the
sx_rehydrate_styles
branch
from
March 5, 2022 20:39
d21e158
to
573dd0a
Compare
vercel
bot
temporarily deployed
to
Preview – universe-sx-tailwind-website
March 5, 2022 20:39
Inactive
mrtnzlml
force-pushed
the
sx_rehydrate_styles
branch
from
March 5, 2022 20:59
573dd0a
to
b974b64
Compare
vercel
bot
temporarily deployed
to
Preview – universe-sx-tailwind-website
March 5, 2022 20:59
Inactive
mrtnzlml
force-pushed
the
sx_rehydrate_styles
branch
from
March 19, 2022 23:08
b974b64
to
e7a541b
Compare
mrtnzlml
force-pushed
the
sx_rehydrate_styles
branch
4 times, most recently
from
April 3, 2022 20:12
712c4b6
to
0a79ab3
Compare
mrtnzlml
force-pushed
the
sx_rehydrate_styles
branch
3 times, most recently
from
April 16, 2022 22:56
dcc910e
to
bfbd00b
Compare
mrtnzlml
force-pushed
the
sx_rehydrate_styles
branch
2 times, most recently
from
May 11, 2022 00:27
2ba3514
to
e449cb8
Compare
mrtnzlml
force-pushed
the
sx_rehydrate_styles
branch
from
June 8, 2022 01:17
e449cb8
to
3e97da0
Compare
mrtnzlml
force-pushed
the
sx_rehydrate_styles
branch
2 times, most recently
from
June 23, 2022 21:00
96070ed
to
52dc20e
Compare
I have these changes sitting locally for a very long time, and it's time to offload them. The idea behind the styles rehydration is very simple: we collect all existing styles from `<style data-adeira-sx />` (once) and use this information later for deciding whether the styles should be injected or not (this is what I call rehydration). The difference from the current solution is that we do it only once and we don't have to go through all the styles everytime there is something to inject. Motivation for this change is performance: this should significantly improve the runtime style perf + be much easier to deal with (for example, we are basically brute-forcing @at rules and pseudo rules now). Note: this is just a partial solution, there are other changes coming (custom styles printer and @at nodes/pseudo nodes optimization). Related issue: #1579
mrtnzlml
force-pushed
the
sx_rehydrate_styles
branch
from
June 23, 2022 22:03
52dc20e
to
ca47c4f
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have these changes sitting locally for a very long time, and it's time
to offload them. The idea behind the styles rehydration is very simple:
we collect all existing styles from
<style data-adeira-sx />
(once)and use this information later for deciding whether the styles should be
injected or not (this is what I call rehydration).
The difference from the current solution is that we do it only once and
we don't have to go through all the styles everytime there is something
to inject.
Motivation for this change is performance: this should significantly
improve the runtime style perf + be much easier to deal with (for
example, we are basically brute-forcing @at rules and pseudo rules now).
Note: this is just a partial solution, there are other changes coming
(custom styles printer and @at nodes/pseudo nodes optimization).
Related issue: #1579