+ 2
Do you know JQuery does same thing with javascript and more easier than javascript?
16 Answers
+ 1
If I would need to use Javascript lib, I would choose React.js rather then jQuery, which Reacts virtual DOM give us faster performance.
Check out the speed test here
https://jsperf.com/react-vs-jquery
+ 2
jquery is library of javascript, of course it does the same thing as javascript does.
+ 2
Yet it still need to load all the jQuery functions
+ 1
But jQuery loads much slower then Javascript since it need to load hundreds of jQuery functions from jquery.js library, before it can run your code.
For web app with less functions, try to avoid use jQuery. Use jQuery for web apps that use javascript functions often.
+ 1
There is "min" version of jquery. it doesn't take too mich time to load. especially for browser that has cache feature.
+ 1
Check out the speed comparison chart here
https://i.stack.imgur.com/iFaEh.png
Vanilla JavaScript can run 12million operations per sec whereas jQuery run 0.35million per sec.
+ 1
jQuery is easier to write but slow performance.
Vanilla javascript is more verbose but high performance.
However jQuery can handle cross browsers operations whereas some new Javascript functions might not run in older browsers.
+ 1
@calvin, well you right. but when i create a web page. i never write million operations in one page 😁
and i think my user isn't care about that too much. they can hold their breath much longer than wait it to show up.
+ 1
@Andika, you are right. Most programmers don't care about the sec different performance.
Faster page load however increase SEO score too.
+ 1
well, most of my project doesn't need SEO, because most of it is private web of company. don't need to show at search engine by the way 😀
0
@Calvin I can't agree with you. jQuery work good if it is at the bottom of your page at the body tag or an external file.
0
@Calvin you better be right.... because I watched some tutorials and I see jQuery is much easier and better.
0
@Andika Romansyah I think you're getting me right🤔
0
@Calvin I think you are putting me in a right way..... I wish you can explain this to other confused, like Im.
0
@Calvin it seem jQuery is not necessary if you are good at JS I seek your advice.
0
@Andika you need to make it fast and perfect. it really matters to some of your costumer. do I make any sense at all?