Discussion on Emotion's performances (LightHouse "performance" score) #2376
Vadorequest
started this conversation in
General
Replies: 1 comment 5 replies
-
Emotion should not yield a noticeable perf impact if you SSR stuff correctly - caching is helpful as well. I know success stories of the very perf-oriented brands using Emotion with success (and actually praising it for its perf and API) so I don't really think that there is that much to improve on our side. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I came across https://daily.dev/blog/why-i-moved-from-styled-components-to-tailwind-css-and-whats-the-future-of-css-in-js today, and although I had noticed my app has relatively bad performances (score of 40-80, kinda random) I hadn't linked it to Emotion.
I would like to know if there are any plans regarding improving the performances, I have very little background regarding how Emotion works behind the wheel.
Is it possible to have a summary of the known performance issues, what's planned to improve those, and how I, as a developer, can improve performances.
For instance, I write most of the styling using
css=css()
(inline), is that worse than using the Styled Component approach?Here's an example of a
Btn
component.Here is the LightHouse score for our production build: https://lighthouse-dot-webdotdevsite.appspot.com//lh/html?url=https%3A%2F%2Fnrn-v2-mst-aptd-at-lcz-sty-c1.vercel.app%2Fen (Score of 67)
Any advice/guide/doc regarding those would be very much appreciated! 😄
Beta Was this translation helpful? Give feedback.
All reactions