JavaScript is a plain vanilla programming language recognised by browsers at the client level and (increasingly) servers too. By itself it does nothing much, you need to programme something with it.
jQuery is a library of pre-configured functions, written in JavaScript.
jQuery is intended to be a timesaver, as it contains numerous pieces of functionality that could take hours to write if you were to start writing it in JavaScript from scratch.
thank you very much for the information, ^^ I think remore code jquery because that block the display of my site web and thus delay. and when we remove code jqueyry I losed the adgets in template my site web , thank you
Well, jQuery is an abstraction of JS and is what JS should have been in the first place. And the “youmightnotneedjquery” article actually shows why, I would say.
There is still to many browser inconsistencies, IE 10 and 11 are nowhere near flawless, stock Android browser is very very bad, there is just too much stuff.
In the end, it helps with productivity, as long people understand how the JS behind works.
Yes, same language, but much much easier to use and efficient.
It used to - almost all of the useful jQuery commands now have native JavaScript equivalents so the latest jQuery version is little more than a wrapper around individual JavaScript commands just to save people from having to rewrite their jQuery back into the native equivalents.
Also, if file size is a concern, jQuery 3 is optionally available as a “slim” version sans effects (which are way too expensive anyway), AJAX and deprecated code… saves you around 25%.