0
p32929
37d

Spent 20 minutes today debugging why my <script src="raw.githubusercontent.com/..."> returned the file with Content-Type: text/plain, so the browser politely refused to run it. Right. GitHub serves raw files but not as files. Of course.

Then I remembered RawGit died years ago, jsDelivr wants me to think about which CDN path version I am pinning, and all I had was a one-off Gist I wrote at 2am.

Found this thing that just takes the blob/gist URL, hands back a link that actually loads in a <script>/<img>/fetch() — no build step, no API key, no "what is your team size" modal. Pasted, generated, copied, moved on with my life.

Wild that "serve a file as a file" is a product, but here we are.

https://ghcdn.vercel.app

Comments
Add Comment