Whats faster when using jquery selectors .classname or div.classname
|Added at||2017-01-03 13:01|
Is it faster to use
or add the tag to look for as well
I think its the classname as i'm sure jquery will just loop through to get all classnames where the 2nd one will first get all the div tags and then loop through that subset to get the classnames. Thats what i think anyway.