CDN #36

Closed
YPCrumble opened this Issue Mar 10, 2016 · 5 comments

Projects

None yet

3 participants

I'm having an issue with dropdown.js in React components but having trouble uploading a Fiddle to show the issue - is there a CDN or could we get one added for this library? Happy to make a pull request for that if it's helpful but not sure where/how...

Thanks for building this library!

Owner

The only CDN I can think of is the one provided by https://cdn.rawgit.com/FezVrasta/dropdown.js/master/jquery.dropdown.js

@YPCrumble YPCrumble closed this Mar 10, 2016

@FezVrasta that's perfect and helped me figure out the issue I was having, thank you!

@FezVrasta That's a bad link to give out - Rawgit's CDN caches that one at whatever commit it was up to the first time it was accessed.

For development, this URL is better:

https://rawgit.com/FezVrasta/dropdown.js/master/jquery.dropdown.js

Owner

You can't use it in production tho

The original request was to be used with JSFiddle.

For a real CDN URL for production, it should include a SHA (or tag) instead of the branch name.

For example: https://cdn.rawgit.com/FezVrasta/dropdown.js/2555da768c03af6445fffcb6bac63eeb609459f8/jquery.dropdown.js

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