Tuesday, July 01, 2014

Do you really need jQuery?

Very few people realize that modern browsers are much more consistent than they were in IE8 era.

No doubt, jQuery is great at what it does. Use it if it makes your job easy such as DOM manipulation. On the other hand, if you are developing anything that you plan to use across projects such as a framework or library, you may want to consider dropping jquery. When all you need is just few things that jQuery offers as utility, you may want to write the utility code, perhaps in a utils file or something similar. youmightnotneedjquery.com provides great JavaScript alternatives to jQuery.

A good option will be to add AngularJS in your kitty instead, it has futuristic approach, defaults to browser provided feature, if available. Yes, it is an opinionated framework defining most of the things how they should be done, the Angular way. So, may be intimidating at first, but worth it to learn and then be productive on the app instead.

No comments: