Closed ceifa closed 4 years ago
Not sure in this simple case, but generally, getElementsByTagName is faster than querySelectorAll:
getElementsByTagName
querySelectorAll
https://humanwhocodes.com/blog/2010/09/28/why-is-getelementsbytagname-faster-that-queryselectorall/
Thanks! Did not know this.
Not sure in this simple case, but generally,
getElementsByTagName
is faster thanquerySelectorAll
:https://humanwhocodes.com/blog/2010/09/28/why-is-getelementsbytagname-faster-that-queryselectorall/