Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6175951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:00:48+00:00 2026-05-24T00:00:48+00:00

Possible Duplicate: When should I use a javascript framework library? All, I’m fairly new

  • 0

Possible Duplicate:
When should I use a javascript framework library?

All,

I’m fairly new to web app development.

Recently, I’ve built a few HTML5 apps specifically targeted at iPads and iPhones.

I’ve noticed that very few people seem to use straight JavaScript – virtually everyone uses jQuery (Prototype, YUI, Mootools, etc. seems somewhat less popular).

If I’m starting out – SHOULD I use jQuery? Or, would I be better off writing my own JavaScript?

In general – I prefer using as much of “my own” code as possible. I’m uncomfortable using a framework if I can avoid it – I feel like it prevents me from understanding what’s going on “underneath the hood.”

(Sure – even if I’m using straight JavaScript – there are many levels “underneath the hood” (e.g., browser’s JavaScript enging, the OS, kernel, etc.), that I don’t understand, but the lower the level I do understand, the better.)

The only concrete advantage I can think of for not using jQuery… loading the ENTIRE jQuery framework, when I only need a handful of it’s functions – seems unnecessary and wasteful.

So – in general – would I be better off creating my own, highly-tailored, application-specific JavaScript for each project?

Or – should I bite the bullet, get over my reluctance to use someone else’s code, and use jQuery? Are there advantages to it besides just not having to create my own versions of functions that have already been written by someone else?

E.g., are it’s functions somehow optimized or more efficient than what I could produce on my own?

[UPDATE]

One of the common themes in the answers so far… jQuery eliminates the need to worry about browser differences. Good point.

By in my case, I’m writing apps specifically for the iPhone, iPad, and Android. As far as I know – the browsers are pretty consistent. The vagaries and idiosyncrasies of IE6, 7, and 8 really don’t seem to apply. Is that true? If so, does it eliminate a major reason for using jQuery?

Another key issue… jQuery is so popular, that there’s a good chance that it’s already in the user’s cache, thus eliminating the need to load it. True… but is that the only performance hit? In other words… does the existence of the hundreds of functions that are part of jQuery impact the performance of my page? (I don’t know how JavaScript engines work, so I have no idea if this is the case…).

Many thanks in advance for your advice and guidance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T00:00:49+00:00Added an answer on May 24, 2026 at 12:00 am

    I do understand you. I had the same thoughts for quite a while. However, in this particular instance it has a good reason why so many people are using a framework (jQuery as the most popular nowadays). The reason is, not to care about browser-differences + a nice toolkit of methods and functions.

    But the first thing (browser differences) is by far more important. If you’re going to write everything on your own, you just have to care about SO SO many things for all those browsers and versions out there, it’s just disgusting. So some smart clever people came up with the idea, why not creating a library which abstracts all those differences and we can use the same set of methods on almost any browser platform. Boohja, that is how a Javascript library is born.

    Another point you mentiond: loading the ENTIRE jQuery framework (...)

    Well, as you also correctly mentioned, jQuery is so popular it’s so likely that an user already has a jQuery-version cached in his browser. So it’s always a good idea to first try to load a library like jQuery from a common CDN like Google. The chances that the browser don’t even need to download it are pretty good.

    Now I’m not gonna argue about the code quality and stuff like that. But jQuery is a pretty solid lib. It offers a very nice browser abstraction along with a convinient syntax (jAndys opinion). But there are lots of other very nice librarys out there. In general I would always recommend to use one, especially for large scaled web applications.

    At some point, you’ll start anyway to write your own methods to abstract browser differences and behaviors on your own, because it is just annoying to write so much more code every time. Therefore no need to invent the wheel here (only for learning purposes probably).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: When should I use double or single quotes in JavaScript? Do ""
Possible Duplicate: Why use dynamic typing in c#? Should the new C# type 'dynamic'
Possible Duplicate: What Java FTP client library should I use? I am looking for
Possible Duplicate: When should you use 'friend' in C++? I was brushing up on
Possible Duplicate: Why not use tables for layout in HTML? Under what conditions should
Possible Duplicate: Should I use static_cast or reinterpret_cast when casting a void* to whatever
Possible Duplicate: Should I use Elements or Attributes in XML? I'm writing a configuration
Possible Duplicate: Should I use Elements or Attributes in XML? I have never been
Possible Duplicate: When should I use stdClass and when should I use an array
Possible Duplicate: In C#, should I use string.Empty or String.Empty or “” ? I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.