Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are some of the pros and cons of using jQuery? [closed]

Tags:

As someone who is only barely proficient in javascript, is jQuery right for me? Is there a better library to use? I've seen lots of posts related to jQuery and it seems to be the most effective way to incorporate javascript into ASP.NET applications.

I've been out to jQuery's site and have found the tutorials and other helpful information. Any other reference material (i.e books, blogs, etc.) would be helpful.

Thanks!

like image 893
mwilkes Avatar asked Sep 23 '08 18:09

mwilkes


People also ask

What are the pros and cons of using jQuery?

Pros: Lightweight, easy to use, good documentation, gets rid of nearly all cross-browser issues and normalizes the event model. Cons: jQuery UI doesn't have much to offer, and the plugins are hit or miss. If you're doing a very JavaScript-heavy Rich Internet Application, go with YUI or ExtJS.

What is the problem with jQuery?

Another major problem with jQuery is that there are multiple versions out there. Some versions play well with others and some don't. For example, browser compatibility with animations has been a long-standing problem with jQuery animations.

Why do people not use jQuery anymore?

JQuery is useful, but what killed it was it's widespread use. Vanilla Javascript kept updating so that things that made jQuery special became things that you found in Javascript without jQuery. So, it started becoming obsolete.

What is jQuery What are the advantages of jQuery?

jQuery is a lightweight, "write less, do more", JavaScript library. The purpose of jQuery is to make it much easier to use JavaScript on your website. jQuery takes a lot of common tasks that require many lines of JavaScript code to accomplish, and wraps them into methods that you can call with a single line of code.


1 Answers

The great thing about libraries like jQuery and Prototype is that they take care of a lot of the cross-browser kwirks that can make Javascript such a pain to write. Either one of those or maybe even mootools will be good to you, their respective websites being about as good as a resource as it's gonna get.

edit: as far as the 'con' of having extra loading size on your page, I suggest using Google to host these for you. Optimistically, some people will have it cached from other websites, plus Google takes care of versions/compression for you.

like image 160
Paolo Bergantino Avatar answered Oct 19 '22 05:10

Paolo Bergantino