News for hackers. Stuff that matters.
Re:Real-world CSS vs. CSS-in-JS performance comparison by codegrappler on Tuesday June 08, 2021 @08:57PM (#27443002)
For us the big win is branded sites. We have a white labeled product that is customizable for each client. No code deploys needed to add a new client. Values live in a db table and get pulled in dynamically based on the url subdomain.
Re:Real-world CSS vs. CSS-in-JS performance comparison by enumjorge on Tuesday June 08, 2021 @09:34PM (#27443246)
Honestly curious, couldn’t you achieve something similar with style sheets, where you determine what .css file to serve based on the subdomain?
Re:Real-world CSS vs. CSS-in-JS performance comparison by girvo on Tuesday June 08, 2021 @10:45PM (#27443668)
Yes, and using CSS Custom Properties/the var() function you can even keep that branding file as small as said table. Could even build it dynamically, if one wanted.