Having recently made an update to my respond theme for wordpress, I wanted to implement a mobile-targeted menu, taking into account that hover doesn’t work on smartphones and tablets.
…But do we need to use jQuery for one onClick() event? Although the ~30kb load jQuery adds might not be that big a deal, especially if you have any pictures, it does mean an extra uri to fetch and wait for and the main reason for this is mobile which won’t necessarily have a fast or unlimited data connection.
It turns out I’m not the only one wondering this: http://youmightnotneedjquery.com/
Do I need jQuery?… Probably not.