4 ms·
Doesn't touch on performance, and I believe the difference between the two is non-negligible. Nvm, it absolutely does: > And, ultimately, there’s that nagging
by ZjA2NDFkNTNmYzQ 4y ago
Doesn't touch on performance, and I believe the difference between the two is non-negligible.
Nvm, it absolutely does:
> And, ultimately, there’s that nagging feeling that you’re going against the grain by repurposing data attributes for styling — after all, selecting elements is what classes are for, and what browsers optimise for in selector performance.