id vs class selection benchmark
- by zaf
Has anybody bench marked selecting elements with id's and class's from CSS and javascript?
It would make sense that an element with an id is faster to select than if it had a class even if it was the only element with that class.
Do I really need to be concerned?