-
Notifications
You must be signed in to change notification settings - Fork 3
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
[meta] Custom metrics #46
Comments
I think #44 is the only one that's feasible with custom metrics |
IIUC, it's an |
We can avoid the |
@LeaVerou Regarding #44, there is a list I found with more or less popular CSS-in-JS libraries - https://github.com/A-gambit/CSS-IN-JS-Benchmarks/blob/master/RESULT.md. Each of the libraries would need different detection algorithm. I don't think we can put them all in. Do you reckon a subset would be sufficient? |
@dooman87 Sure, a subset of the most popular ones should suffice. I trust you to pick the right subset :) |
Not sure if you saw this, I committed a prototype last night. Not sure if I should just directly add it to css.js and iterate there, or what's the recommended way to debug these things. But it's not |
Thanks @LeaVerou! The prototype looks good and is much more compact than I had imagined. Let's try to get it added ASAP. |
After wading through all proposed stats, it looks like the only ones that may require custom metrics are:
Greg's script in #37 would also fall under that category, since it reads
document.styleSheets
, but it may be a better idea to write a script that uses the Rework AST to compute these metrics.CC @rviscomi @dooman87
The text was updated successfully, but these errors were encountered: