Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
isleyaardvark
3y ago
0 comments
Save
Share
JS can do just as well with unique classnames, which avoids issues with ids like those given in the article.
0 comments
2 comments · 1 top-level
top
newest
oldest
sgc
3y ago
· 1 in thread
I always presumed this would usually entail a performance hit, since you are accessing something that is not defined as unique.
isleyaardvark
OP
3y ago
It's an infinitesimal performance decrease, and it avoids a lot of other issues.
j
/
k
navigate · click thread line to collapse