Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Are jQuery scripts really faster than JavaScript?

 
M Mohile
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everybody,
I have worked on JavaScript but completely new to jQuery. What I get is (correct me if I'm wrong) jQuery is a library built using JavaScript. But I've seen blogs saying jQuery scripts are actually alot faster than JavaScript without any proper explanation. What I don't get is if JavaScript is the driver at the back-end for jQuery to work, how can jQuery be faster than JavaScript. In fact, I've developed an application using JavaScript which took the same time (yeah, there might be a difference in a few milli-seconds but who notices that?) when coded using jQuery by a fellow jQuery developer.
Please help me explain that if the above sentence holds true or its just a myth??
 
Rob Crowther
author
Ranch Hand
Posts: 297
5
Android Fedora Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where are these blog posts?
 
M Mohile
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not on codeRanch or else I would have asked it there itself..
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64858
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only interpretation I can come up with that makes sense is that the jQuery code is highly optimized and using it is likely to end up with faster code than if one tried to write the algorithms themselves.
 
M Mohile
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So it does mean that the above statement is not a myth...which might help in huge applications. Fellow-Ranchers, I'm eager to hear a better explanation/opinion on this...
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64858
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's either as I said or a myth. Certainly a library in any language cannot make that language run faster; it can only use the language efficiently.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic