What is the Relative Performance of Pseudo-Class and Custom Selectors?
- by James Wiseman
It's my understanding that, in terms of selector speed, that #ID selectors are fastest, followed by element selectors, and then .class selectors.
I have always assumed that pseudo-class selectors and custom selectors (those in the form ':selector') are similar to .class selectors, but I realised that I'm just not sure.
I realise that this does…