This is not a legal question. It might touch the legal aspects around Open Source licenses but I need general help understanding how they work and what the usual procedure is.
Part 1 of my question: I don't need to do anything if I don't redistribute or copy the MIT or BSD-2-Clause licensed work, right?
The BSD-2-Clause License has a paragraph
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
and the MIT License has a paragraph
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
Is it correct to assume that when there is no redistributing or copying of the MIT or BSD-2-Clause licensed work, there is no need to retain a copyright notice or include the corresponding license text?
Part 2 of my question: What do you do when you use (not redistribute or copy) MIT or BSD-2-Clause licensed work within your project?
For example, Unite Gallery and snoowrap are MIT licensed and PRAW is BSD-2-Clause licensed. (These projects are only chosen as exemplary projects for the HTML5/Node.js/Python snippets below. I'm looking for a general answer regarding MIT or BSD-2-Clause licensed code.)
A project might be linking to MIT or BSD-2-Clause licensed code hosted in an open CDN via <script src="...
in HTML5
<script src="https://cdnjs.cloudflare.com/ajax/libs/unitegallery/1.7.40/js/unitegallery.min.js"></script>
or via require(...
in Node.js
var snoowrap = require('snoowrap');
or via import ...
in Python
import praw
So, even though one didn't modify the licensed source code or add any files from the licensed source code to one's project, is it still redistributing of the licensed source code (paraphrased from MIT quote above) or copying of the Software (paraphrased from BSD-2-Clause quote above)?
What am I obligated to do? What's the usual procedure?
Thank you very much in advance. I think this is an important topic because
I might use MIT or BSD-2-Clause licensed work in my projects and want to understand what I have to do
I might license my work under the MIT or BSD-2-Clause License and I want to understand what others have to do when they might want to use my work
However, I couldn't find information on this. All the questions I found were about the case where someone put the (sometimes even modified) licensed source code into their project, bundled it as a whole and published it to GitHub for example. This seems to be a distinctly different case to me.