News for hackers. Stuff that matters.
Re:I loved jQuery, and still do (2019) by sir_pepe on Tuesday June 29, 2021 @03:55PM (#27680928)
getElementsByClassName and getElementsByTagName return live HTMLCollection objects that update when the DOM changes (or rather get re-computed when you access their contents following a DOM change). Depending on what you do with them, you may end up with worse performance compared to the NodeLists returned by querySelectorAll.

There are no comments on this comment yet.