Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload to CDN #14

Open
ohadschn opened this issue Sep 11, 2017 · 7 comments
Open

Upload to CDN #14

ohadschn opened this issue Sep 11, 2017 · 7 comments

Comments

@ohadschn
Copy link

ohadschn commented Sep 11, 2017

Would be great to be able to fetch this from some CDN...

@lukejacksonn
Copy link
Owner

It would.. 🤔 any suggestions? My usual method involves making it an npm module (which would probably be a good idea anyway) and then using http://unpkg.com/greedy-nav as my script src.

@ohadschn
Copy link
Author

ohadschn commented Sep 12, 2017

Wow, that is a very cool trick. I only knew about cdnjs (CloudFlare) but they seemed to have gotten picky about the libraries they serve. I would still try them first as they are the most established CDN, where as far as I can tell unpkg is a one-man project (I would be a little wary of risking my site breaking if he decided to take it down)...

@MartinKolarik
Copy link

@ohadschn there's also jsDelivr which support serving from npm (like unpkg) and GitHub, but was built for production usage and has the largest network from all OSS CDNs.

@ohadschn
Copy link
Author

ohadschn commented Sep 12, 2017

@MartinKolarik wow, that looks great! Not sure what you mean by the largest network (this site suggests that it's not as popular as cdnjs) but it definitely looks production ready.

@MartinKolarik
Copy link

Not sure what you mean by the largest network (this site suggests that it's not as popular as cdnjs)

@ohadschn that's most likely right as cdnjs exists longer. What I meant was that jsDelivr uses a combination of three CDN providers plus another one in China, which results in the best possible performance and uptime (cdnjs/unpkg only use Cloudflare).

@lukejacksonn
Copy link
Owner

Thanks for the suggestions! I have never had any issues with unpkg (which is still my preferred approach, in the name of consistency) but will look into the other options and try get it up somewhere 👍

@ohadschn
Copy link
Author

I'm sold on jsDelivr. Would really prefer it over unpkg which is again, a one-man project which isn't even on the cdnperf.com list...

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

No branches or pull requests

3 participants