pkmnq @pkmnq

if querySelector is the better version of getElementsByX, then what is the better version of

gilbert189 @gilbert189

Do you prefer using the getElementsBy... functions or querySelector?

For some reason I prefer querySelector lately

Nov 25, 2022, 7:12 AM
4
Nov 25, 2022, 12:13 PM
4
View all Parent

comments

Highlighted comment

ah, okay, for vanilla js i don’t think there’s any way to make that any more efficient