3 ms·
woosh, loading jQuery to access an element is not needed. document.getElementById would suffice.
by hashberry 7y ago
woosh, loading jQuery to access an element is not needed. document.getElementById would suffice.
- whoisjuan 7y agojQuery 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 7y agoThere's no reason to load a 30KB JavaScript library for such a simple webpage. See http://youmightnotneedjquery.com/ http://youmightnotneedjquery.com/