0
Will we transfer jQuery to JavaScript
2 Réponses
+ 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.
+ 5
jQuery written in JavaScript so transfer in what sense?