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?
|
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? |
||||
|
|
|
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. |
||||
|
|
|
For any client-side library, I would suggest using a CDN.
|
|||||||
|
|
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... |
|||
|
|