+ 2

What is work faster clean JavaScript or jQuery?

14th Feb 2017, 3:01 PM
Oleg Kupriianov
Oleg Kupriianov - avatar
2 ответов
+ 5
JQuery is written in JS, and is a library mainly binding functionalities of JS to simplificate coder write with shorthand functions and silent cross-browser support, and secondary providing some extra functionalities/improvements to the language...For theses reasons, most functions of JQuery add a function call where you can avoid it by directly calling the built-in JS function ( and some memory use for variables scope, stack... ). Not a big spent of ressources itself, but technically, JQuery cannot win the run against pure JS ( until quality of coding is less or more equivalent ^^ )
14th Feb 2017, 9:37 PM
visph
visph - avatar
+ 3
JavaScript always works faster, because it is run by the browser which is installed locally, jQuery can also be installed locally but it is a library and the compiler needs extra time to look through the JavaScript code inside the included jQuery.js file to come to a conclusion of what to do. EXCEPT when you write NOOB code and get JavaScript to run slower than jQuery |-(
14th Feb 2017, 4:57 PM
Mohammed Bouiyad
Mohammed Bouiyad - avatar