Having trouble copying JavaScript files?

Say my web application uses jQuery and I am combining the jQuery source file with my own javascript files into a single file.

Now I still need to put the jQuery header at the top of the merged file, right? But I also need to add a notification that I “modified” this file because I added my own code?

What if I use several JavaScript libraries and combine all of them, as well as my own code in one file? Do I reset all my copyright headers up and add a change notice? Will it be legal?

And a related question, should I also include a copy of all related licenses on my website? If so, how do major sites handle this? For example, StackOverflow uses jQuery, where is its page containing the MIT or GPLv2 license? A.

+7
source share
1 answer

I have no idea about legal issues, but it’s a good practice to put a block of copyright comments in front of every piece of open source code. In flickr, we use YUI and place this block before including the YUI code in our combined files:

/* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 3.3.0 build: 3167 */ 

As you can see, this includes a link to the license, copyright information, and a description of the license.

+4
source

All Articles