Turn Any GitHub Repository Into A CDN

(This tip is originally from Sarah Dayan, Frontstuff via Chris Ferdinandi, Go Make Things)

Using jsDelivr, you can turn any GitHub repository into a CDN:

How to do this:

  1. Use the base URL https://cdn.jsdelivr.net/gh/
  2. Add {username}/ where {username} is your GitHub username
  3. Add {repo}/ where {repo} is the name of your GitHub repository
  4. Add {path_to_file}/ where {path_to_file} is the exact path to the file in your repository that you want to access.
Back to top Back to Home