+ 2

Do you know JQuery does same thing with javascript and more easier than javascript?

8th Dec 2017, 9:04 AM
YoungWizard💧
YoungWizard💧 - avatar
16 Respuestas
+ 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
8th Dec 2017, 9:33 AM
Calviղ
Calviղ - avatar
+ 2
jquery is library of javascript, of course it does the same thing as javascript does.
8th Dec 2017, 9:10 AM
Andika Romansyah
+ 2
Yet it still need to load all the jQuery functions
8th Dec 2017, 9:17 AM
Calviղ
Calviղ - avatar
+ 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.
8th Dec 2017, 9:09 AM
Calviղ
Calviղ - avatar
+ 1
There is "min" version of jquery. it doesn't take too mich time to load. especially for browser that has cache feature.
8th Dec 2017, 9:23 AM
Andika Romansyah
+ 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.
8th Dec 2017, 9:24 AM
Calviղ
Calviղ - avatar
+ 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.
8th Dec 2017, 9:27 AM
Calviղ
Calviղ - avatar
+ 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.
8th Dec 2017, 9:35 AM
Andika Romansyah
+ 1
@Andika, you are right. Most programmers don't care about the sec different performance. Faster page load however increase SEO score too.
8th Dec 2017, 9:46 AM
Calviղ
Calviղ - avatar
+ 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 😀
8th Dec 2017, 9:54 AM
Andika Romansyah
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.
8th Dec 2017, 9:15 AM
YoungWizard💧
YoungWizard💧 - avatar
0
@Calvin you better be right.... because I watched some tutorials and I see jQuery is much easier and better.
8th Dec 2017, 9:21 AM
YoungWizard💧
YoungWizard💧 - avatar
0
@Andika Romansyah I think you're getting me right🤔
8th Dec 2017, 9:27 AM
YoungWizard💧
YoungWizard💧 - avatar
0
@Calvin I think you are putting me in a right way..... I wish you can explain this to other confused, like Im.
8th Dec 2017, 9:30 AM
YoungWizard💧
YoungWizard💧 - avatar
0
@Calvin it seem jQuery is not necessary if you are good at JS I seek your advice.
8th Dec 2017, 9:36 AM
YoungWizard💧
YoungWizard💧 - avatar
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?
8th Dec 2017, 9:40 AM
YoungWizard💧
YoungWizard💧 - avatar