3👍
✅
Since you are talking about open-source javascript library you can rely on CDNs (same way you rely on jQuery in your code).
In this specific example – you can use cdnjs for that:
https://cdnjs.com/libraries/jquery.AreYouSure
Just make sure the template you are using includes the relevant script file:
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.AreYouSure/1.9.0/jquery.are-you-sure.min.js"></script>
2👍
As Dekel said, the easiest solution is to use a third-party CDN.
If, however, you don’t want to rely on a third-party CDN, the common solution is to include a copy of the JS library in your app’s repository. For example, django itself does this with jquery. You will need to use the package_data argument of setup()
to include the JS library in your distributable.
Source:stackexchange.com