pkmnq — 11/25/2022, 12:13:49 PM

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

↩ repost
gilbert189 — 11/25/2022, 7:12:52 AM

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

For some reason I prefer querySelector lately

♥ 2 ↩ 1 💬 4 comments
♥ 1 ↩ 0 💬 4 comments

comments

lily:

svelte

11/25/2022, 12:19:09 PM
pkmnq:

Good suggestion, unfortunately this is a userscript so I can’t use it

I’ll keep that in mind when I’m doing something actually useful

11/25/2022, 12:36:51 PM
lily:

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

11/25/2022, 2:30:24 PM
oren:

+1

11/25/2022, 1:24:49 PM