aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Are jQuery scripts really faster than JavaScript? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Are jQuery scripts really faster than JavaScript?" Watch "Are jQuery scripts really faster than JavaScript?" New topic
Author

Are jQuery scripts really faster than JavaScript?

M Mohile
Greenhorn

Joined: Sep 22, 2012
Posts: 17
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

Joined: Nov 06, 2012
Posts: 297
    
    5

Where are these blog posts?


Read my books: Hello! HTML5 & CSS3 | HTML5 in Action | Read my blog
M Mohile
Greenhorn

Joined: Sep 22, 2012
Posts: 17
Not on codeRanch or else I would have asked it there itself..
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61648
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
M Mohile
Greenhorn

Joined: Sep 22, 2012
Posts: 17
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

Joined: Jan 10, 2002
Posts: 61648
    
  67

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Are jQuery scripts really faster than JavaScript?