RawGit – GitHub CDN system
rawgit.com
rawgit.com
EDIT: I mixed up the move of Pages to .io, updated with the right blog post.
Right, but nothing about this disputes or takes issue with that. The purpose of RawGit is to provide a drop-in replacement URL for use cases where such linking would be desirable from a dev or testing standpoint: it reads the raw version and then serves it statically.
There's a CDN option as well: http://rawgit.com/#cdn
Edit: The best analyogy I can think of is it's like going on a date with someone who talks about their ex- constantly. Not bad in itself but enough to make you think twice.
This is typically what I use to offload hosted JS to a CDN although CloudFlare does a very good job. I had a problem early on with MaxCDN which powers http://www.bootstrapcdn.com/. While building http://gitignore.io, I had one pretty bad outage just as I was trying to promote the site so I first switched to cdn.js and then to CloudFlare and have been happy ever since.
They say not to use this CDN for anything production related, but I personally think you shouldn't be using any public JS CDN for anything that matters.
reasoning here :
http://daemon.co.za/2014/03/from-trenches-js-cdn-point-of-fa...
I think that you will inevitably end up needing to host code that uses the external dependencies, and you should host your libraries from the same 'place' that your code ends up on.
It's about data locality and reducing moving parts.
You'll never benefit from having your CDN up if your own servers are down.
It's late =P
I'm leaving my sibling comment untouched since my point still stands.
I'm hoping JSBin will do so soon. There's a promising issue about it (https://github.com/jsbin/jsbin/issues/1094) and it will be an ideal tool for semi-private code demos as well as markdown writing if supported.
I suppose they changed when github stopped using the raw.github.com host, so although this makes it a little more generic, it's lost the biggest usability advantage it had in that you could just delete the dot between "raw" and "github" and hey presto.
All together - wish this was on rawgithubusercontent.com !
https://github.com/rgrove/rawgithub/blob/master/public/js/ev...