Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

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
add comment

3 Answers

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
add comment

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

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
share|improve this answer
    
1  
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
add comment

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
add comment

Your Answer

 
discard

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.