News for hackers. Stuff that matters.
Re:CSS Classes Considered Harmful by Keithamus on Monday August 29, 2022 @11:20AM (#32639326)
I considered exploring it but css selector performance just doesn’t matter with todays engines. There are far greater issues, and far better performance wins than “optimising your selectors”.
Re:CSS Classes Considered Harmful by kevingadd on Monday August 29, 2022 @03:04PM (#32642145)
Makes sense, I would just worry that if I built my whole stack around this, suddenly I hit a breakdown point where I have a ton of attribute selectors and now adding new DOM elements to a content view takes a millisecond.

I'm more wary about this than I used to be since someone managed to accidentally cause tsc to need multiple seconds to compile a single file by making a small change to a type definition. Big O still can bite you!