4 ms·
> Tailwind stylesheets are always going to be much smaller than normal CSS for any decently-sized app. Instead the HTML content grows larger because of the lo
by cuu508 4y ago
> Tailwind stylesheets are always going to be much smaller than normal CSS for any decently-sized app.
Instead the HTML content grows larger because of the long class= attributes. It is a bad tradeoff, because CSS gets loaded once and cached, but HTML gets loaded on every page load.
- smrq 4y agoI don't understand why Tailwind proponents can't seem to see this, and tout "smaller CSS files!" as a benefit. You're still declaring the styles for every element somewhere. The client has to get those bytes somehow. That doesn't get to go away. (And if it's just about "m-2" being shorter than "margin: 0.5rem" or whatever... I can't believe that after gzip that matters one whit.)