Will we transfer jQuery to JavaScript | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Will we transfer jQuery to JavaScript

22nd Apr 2023, 2:37 AM
Jagapathi Babu Banoth
Jagapathi Babu Banoth - avatar
2 Answers
+ 11
jQuery is a Javascript library that provides a lot of convenience for the developers. But it was written in Javascript, and even the jQuery you write is actually also Javascript. So there is no transfer. On the other hand, Javascript itself has evolved a lot over the years (particularly with EcmaScript 6) and now it has many tools built into the core language, what previously was made tremendously easy with jQuery. Like document.querySelector or the fetch API. Today there is no reason to use jQuery for these tasks. The jQuery library itself is quite large, so avoiding it can make a webpage load significantly faster. Converting existing sites that use jQuery, to vanilla JS, can be a huge refactoring task, but ultimately it can be worth considering, if this improves the performance a lot.
22nd Apr 2023, 3:27 AM
Tibor Santa
Tibor Santa - avatar
+ 5
jQuery written in JavaScript so transfer in what sense?
22nd Apr 2023, 4:25 AM
A͢J
A͢J - avatar