Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
hashberry
7y ago
0 comments
Save
Share
woosh
, loading jQuery to access an element is not needed. document.getElementById would suffice.
0 comments
2 comments · 1 top-level
top
newest
oldest
whoisjuan
7y ago
· 1 in thread
jQuery is still a valid way to manipulate the DOM. There’s nothing wrong with doing that, especially if you already need to load jQuery for something else. I don’t think this is what the comment was referring to.
hashberry
OP
7y ago
There's no reason to load a 30KB JavaScript library for such a simple webpage. See
http://youmightnotneedjquery.com/
j
/
k
navigate · click thread line to collapse