Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Let's say you've written nifty JavaScript library that requires jQuery, and you want to host this project on github.

Do you include the jQuery source with your project? Do you direct users to a download link for jQuery?

share|improve this question
up vote 6 down vote accepted

If you include jQuery with your code, then you should keep updating your Git repository to include the latest version of jQuery. In the case you don't update your repository, then users are obligated to download the code from your repository, download the latest jQuery, and replace the copy that comes with your library.
Rather than doing that, it is more polite to report where users can download jQuery, and test your library with the latest jQuery version to report to the users if there are any compatibility issues between your library and jQuery.

share|improve this answer

For any client-side library, I would suggest using a CDN.

<script type="text/javascript" src=""></script>
share|improve this answer
I agree, but it's still best practice to include a local fallback copy. This is a bit tangential to the question, though. – Closure Cowboy Apr 24 '11 at 0:55

You do both. The reason is that for the uninitiated, it is easier to use the version of jquery that you bundle.

People do that with java. They offer their software with java, and also without java...

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.