Replies: 2 comments 1 reply
-
you could use that said, having a lot of repetition with class names is the desired outcome of using atomic CSS like Panda, as it compresses very well with gzip, I'm pretty sure if you check the gzipped size this is not going to be an issue |
Beta Was this translation helpful? Give feedback.
-
Looks like there are a few configs that are worth trying from https://panda-css.com/docs/references/config
On my page that lists many supplements (https://pillser.com/brands/21st-century) this reduced HTML size (compressed with brotli) from 869KB to 792KB. |
Beta Was this translation helpful? Give feedback.
-
If you look at the HTML source code of https://ray.run/glossary (here is pretty-printed output), you will see that there are huge blocks of repeating HTML due to complex
class=""
definitions, e.g.about 20% of this output is
class=""
definition. Meanwhile, the actual component is very simple:If you look at the entire document, just class names account for almost 50KB. That's a lot.
What are strategies to reduce repeating class name references?
Beta Was this translation helpful? Give feedback.
All reactions