what is speed JS or JQ

Jack_Sparrow

Well-known member
  • Jun 16, 2008
    42,522
    1
    16,928
    113
    Black Pearl
    JQuery is a javascript library with many features.
    but in the backend javascript commands will be executed.
    When it comes to performance pure JavaScript should be faster than JQuery.
    On the other hand JQuery has alot of features and much easier than JavaScript.

    In web development performance of JavaScript or JQuery does not make a alot of difference since we need to concern about time which takes to load web page and its resources from web server.
     

    kolavari

    Well-known member
  • Aug 11, 2012
    33,746
    1
    25,653
    113
    කැළෑ පොජ්ජේ
    JQuery is a javascript library with many features.
    but in the backend javascript commands will be executed.
    When it comes to performance pure JavaScript should be faster than JQuery.
    On the other hand JQuery has alot of features and much easier than JavaScript.

    In web development performance of JavaScript or JQuery does not make a alot of difference since we need to concern about time which takes to load web page and its resources from web server.

    Performance of Javascript/Jquery makes a difference :) I remember once I used a Jquery plugin downloaded from somewhere to include a slider (not the usual sliders we have, animated with fanzy effects, blah blah )

    So after the client checked the demo, he complained to me that his computer got strucked :lol: It was a normal computer, but the Jquery plugin which I've used had some issues, making the browser to use almost 90% of his cpu :D Then I removed that fancy slider and put a normal one. (the slider was client's requirement)

    So we have to think about the JS performance too :)
     

    DJvodka

    Well-known member
  • Mar 31, 2009
    3,375
    292
    83
    A land like no other
    Machan you're worrying about the wrong problem, with more experience you'll realize this. Worrying about something like this is the last thing you should do be doing when developing. Of course frameworks and libraries going to be bit slower than pure language implementation, but we're talking milliseconds here. If these things really mattered no frameworks will exist like Backbone JS, Ember or Angular.

    Read more - "premature optimization"

    http://c2.com/cgi/wiki?PrematureOptimization
    http://programmers.stackexchange.co...ture-optimization-really-the-root-of-all-evil

    Yep. Premature optimization is the culprit here. People question about well established libs and frameworks without even writing a single line of code. These tools are more than enough to deliver what most projects require today. So the bottom line is to pick anything and get something working. If at anytime you find that your code hogs cpu, then post your code here so we can help you find ways to optimize it.
     

    Jack_Sparrow

    Well-known member
  • Jun 16, 2008
    42,522
    1
    16,928
    113
    Black Pearl
    Performance of Javascript/Jquery makes a difference :) I remember once I used a Jquery plugin downloaded from somewhere to include a slider (not the usual sliders we have, animated with fanzy effects, blah blah )

    So after the client checked the demo, he complained to me that his computer got strucked :lol: It was a normal computer, but the Jquery plugin which I've used had some issues, making the browser to use almost 90% of his cpu :D Then I removed that fancy slider and put a normal one. (the slider was client's requirement)

    So we have to think about the JS performance too :)

    I was referring out of box JQuery library not third party plugins made by JQuery.

    Even one can write same sort of thing by a javascript which can cause performance.
     

    Ayeshlive

    Well-known member
  • Jul 1, 2011
    10,570
    943
    113
    *̶͑̾̾​̅ͫ͏̙̤g͛͆̾ͫ̑͆&
    kolavari;17678897 Angular is far better than Jquery to build front-end web apps. If you have to write a large app using jquery said:
    noticeable performance differences[/COLOR];
    Machan Angular is a front-end framework. jQuery is not. it just provides utils to make it easier to write DOM access, Ajax, and other common JS code.
    Don't be a framework fan. You need to go deep in JS no matter what framework you do.

    The chart you have shown above clearly indicates jQuery isn't for front end routing and templating.

    Besides, it's common these days to see every other Indian publishing bite-size libs. Just choose a set of frameworks and understand them well. Most importantly, understand the concepts.

    Some guy said he feels that angular is slower. May god help your cerebral machan. We use benchmark software because these frameworks are very optimized and feeling a difference is almost impossible. Benchmark your snippet and decide for yourself.

    jQuery is also backed by Google and many others these days. There is a shitload of plugins and then there is jQuery UI.
    underscore and backbone are interesting frameworks if you are into experiments.
     

    KPZ

    Well-known member
  • Apr 15, 2011
    17,331
    1,622
    113
    where I wanna be
    Machan Angular is a front-end framework. jQuery is not. it just provides utils to make it easier to write DOM access, Ajax, and other common JS code.
    Don't be a framework fan. You need to go deep in JS no matter what framework you do.

    The chart you have shown above clearly indicates jQuery isn't for front end routing and templating.

    Besides, it's common these days to see every other Indian publishing bite-size libs. Just choose a set of frameworks and understand them well. Most importantly, understand the concepts.

    Some guy said he feels that angular is slower. May god help your cerebral machan. We use benchmark software because these frameworks are very optimized and feeling a difference is almost impossible. Benchmark your snippet and decide for yourself.

    jQuery is also backed by Google and many others these days. There is a shitload of plugins and then there is jQuery UI.
    underscore and backbone are interesting frameworks if you are into experiments.
    The Moral :- Learn JavaScript
     

    kolavari

    Well-known member
  • Aug 11, 2012
    33,746
    1
    25,653
    113
    කැළෑ පොජ්ජේ
    Machan Angular is a front-end framework. jQuery is not. it just provides utils to make it easier to write DOM access, Ajax, and other common JS code.
    Don't be a framework fan. You need to go deep in JS no matter what framework you do.

    The chart you have shown above clearly indicates jQuery isn't for front end routing and templating.

    Yes bro. I've never mentioned that Jquery is a framework. I have shared that image to give an idea to others what differences they have. But still you can develop web apps using jquery (because it's javascript, just like angular.) and you can extend the Jquery lib to add those extra features (routing, temeplating etc) because we can't say that jquery is not capabal etc? both of them are javascript.

    What happens if you use jquery is that it makes the maintenance hard. Otherwise both angular and jquery are written in javascript only :)