Skip to content

Conversation

hyunbinseo
Copy link

Both CDN supports semver in the URL.

Specifying v1 is advised to avoid unexpected breaking changes.


use a version range instead of a specific version

https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js
https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js

omit the version completely to get the latest one. you should NOT use this in production

https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js

You may also use a semver range or a tag instead of a fixed version number, or omit the version/tag entirely to use the latest tag.

https://unpkg.com/react@^16/umd/react.production.min.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant