2013: You could try and delete the dot between raw and github:
https://rawgithub.com/raysan5/raylib/master/examples/ex01_basic_window.c
See rawgithub.com, also explained in this blog post:
GitHub discourages this, since they want repo owners to use Github Pages to host specific versions of their files. They discourage it by serving files from the “raw” domain with Content-Type: text/plain instead of Content-type:application/javascript.
This wasn’t a problem until recently, when Google Chrome implemented a security fix that prevents JavaScript from being executed if it has an incorrect Content-type.
This makes sense when you’re viewing pages outside of your control. But when it’s you who’s deciding what scripts to include, it’s a hassle.
As Rob W comments below:
It's worth mentioning that the only reason that this web service solves the OP's problem is that it includes the Access-Control-Allow-Origin: * response header.
OCt. 2018: As seen in their homepage
RawGit has reached the end of its useful life
RawGit is now in a sunset phase and will soon shut down. It's been a fun five years, but all things must end.
GitHub repositories that served content through RawGit within the last month will continue to be served until at least October of 2019. URLs for other repositories are no longer being served.
His creator, Ryan Grove, said Aug. 5th, 2023:
About 5 years ago I put RawGit into “sunset” mode. I generated a bloom filter representing every repo URL that had been active within the last month, deployed a change to only serve requests for those repos, resolved to let it keep running until it broke, and then never looked at it again except to renew the domain from time to time.
Checked on it today and it’s still running fine, serving 393 million requests and 4.1 TB of data a month with literally zero maintenance. 🤷♂️