-
Notifications
You must be signed in to change notification settings - Fork 319
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
Minify compiled style keys #875
base: main
Are you sure you want to change the base?
Conversation
workflow: benchmarks/sizeComparison of minified (terser) and compressed (brotli) size results, measured in bytes. Smaller is better.
|
":hover_backgroundPositionY": null, | ||
":hover_backgroundRepeat": null, | ||
":hover_backgroundSize": null, | ||
kKVMdj: "xeuoslp", |
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.
Wouldn't 4/5 characters be enough for this use-case?
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 is 5 chars, plus a prefix. (Converting the first character only if it's a number is not really safe.)
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.
Should we drop the prefix?
This reverts commit 02a93a0.
What changed / motivation ?
The keys of compiled styles are hashed / minified.
This is done to try to reduce the size of the StyleX-generated JavaScript
Fix #741
Pre-flight checklist
Contribution Guidelines