Giter Site home page Giter Site logo

Comments (4)

koddsson avatar koddsson commented on May 23, 2024

We use unpkg for this on the demo site. Can you use something like that?

<script src="https://unpkg.com/@github/clipboard-copy-element@latest" defer></script>

from clipboard-copy-element.

MaybeThisIsRu avatar MaybeThisIsRu commented on May 23, 2024

Oh, sure! That works for me. Perhaps be nice to document it in the README? What do you think?

from clipboard-copy-element.

koddsson avatar koddsson commented on May 23, 2024

I hesitate because we don't control that service, and we're going to have to update all the README's that reference it if it ever goes away. I'd much rather distribute the library on github and npm and leave how to include the library in their application up to the implementors.

from clipboard-copy-element.

keithamus avatar keithamus commented on May 23, 2024

I agree with @koddsson here. I would also add that there are many CDNs which are available to use, such as JSDelivr, Unpkg, CDNJS... promoting one over any others might be considered an endorsement of that CDN by our team or by GitHub writ large, it could also be seen as an endorsement of hot linking code to CDNs in general, which is a practice I personally wouldn't like to endorse.

I think I'll close this issue because the original question has been answered, and I don't think there is anything more actionable here. Thanks everyone!

from clipboard-copy-element.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.