DEV Community

Discussion on: querySelectorAll vs getElements

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

JSPerf would say the getElement's are more performant than querySelector's.

Collapse
 
hyftar profile image
Simon Landry

While this is also my first train of thought, this is what I like to call a micro optimization. In most cases, it won't make a noticeable difference.