NEVER use jQuery. It's 70KB of bloated pointless code.
Everything done by jQuery can be done with scripts that barely add anything to your bandwidth. It's
not shorter code. I've built all of my own functions and have refined them extensively the past decade or so.
Even worse: jQuery has versions and the code breaks like crazy. You'll end up wanting to use a new "feature" but will break a lot of the stuff you've written. By using pure
real JavaScript unless you encountered an browser implementation bug then once it works it will
continue to work. The only reason you should even consider learning jQuery is if you work at some large cold corporate office. Dependencies are weaknesses and you should never add dependencies without serious consideration to
why you're using it. While JavaScript is an interpreted language others like C are
compiled so you would have to carefully choose which compiler you would use (e.g. not using Intel as it intentionally gimps the performance of AMD processors and thus is monopolistic in nature).
Performance wise jQuery is
slow. It adds unnecessary layers. I'm sure that a lot of the object detection is backwards too; you
always detect the standards compliant approach
first. There are benchmarks around the web that show how slow jQuery is compared to pure JavaScript.
If you want to learn good code you should research code that has been refined over years and years for the same projects that continue to expand instead of projects that fracture. I've been working on my
JavaScript documentation [jabcreations.com] and while not everything has a description enough of it does to give you an idea. Click on the function names to view their code. Back in the 2000s there was no Stack and a lot of other resources;
this was the site I came to in order to learn.
I hope this grants you enough insight. I'm not saying don't mess with it or consider some of it's libraries though if you want to be a powerhouse coder or greatly improve the ability to control the environment you're working with because your family, friends, clients, etc deserve it then keeping your code minimal (and strict) is
the way to go. I also
highly recommend using the XML parser instead of the HTML parser (application/xhtml+xml instead of text/html, use SQL's strict mode (MariaDB enables it by default) and maximize the sensitivity of error reporting. Learn how to code at a higher level and you'll be able to do things other people can't.
John