How jQuery comparision to javascript is useful for End Users on performance? [Resolved]

Posted by Kumarkrishna184 under jQuery on 8/7/2016 | Points: 10 | Views : 319 | Status : [Member] | Replies : 2
How jQuery comparision to javascript is useful for End Users on performance?

Thanks and Regards,
Krishna Kumar



Responses

Posted by: Rajnilari2015 on: 8/7/2016 [Member] [Microsoft_MVP] [MVP] Platinum | Points: 50

Up
0
Down

Resolved
jQuery in terms of speed is fast for modern browsers on modern computers. So is pure JavaScript. However, both run drastically slower on older browsers and machines.

Pure Javascript to access the DOM can be faster as you can cut the overhead that jQuery has on this. However it doesn't always have to be faster as you could write some major mistakes that slow things down again. jQuery on the other hand has been battle tested over the past few years and is proven to be performant.

Another thing is, jQuery wasn't specifically designed with mobile devices in mind. Events like click cause a delay due to this fact (~300ms). jQuerys animations are also quite slow on the average mobile device because the way they are written makes them CPU bound, an average mobile device doesn't have alot of CPU power. A way around this is by using hardware accelerated CSS animations.

Here is an article that tells about how to improve JQuery performance ( http://code.tutsplus.com/tutorials/10-ways-to-instantly-increase-your-jquery-performance--net-5551 )

Hope that helps

--
Thanks & Regards,
RNA Team

Kumarkrishna184, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kumarkrishna184 on: 8/8/2016 [Member] Starter | Points: 25

Up
0
Down
jQuery is designed to make developers job more easy but how about end users he want much performance that can get from javascript only then why we need to go with jQuery that call library?

Thanks and Regards,
Krishna Kumar

Kumarkrishna184, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response