Github Raw cannot be used as the head’s stylesheet or scrips, but there is a workaround.

Invalid Link (Raw Version)

Valid Link (CDN Version)

Workaround Guide

  1. Find your link on GitHub, and click on the “Raw” version.
  2. Copy the URL.
  3. Change to
  4. Insert /gh/ before your username.
  5. Remove the branch name. (ex. master)
  6. (Optional) Insert the version you want to link to, as @version
    (if you do not do this, you will get the latest – which may cause long-term caching)

Leave a Comment

Subscribe to the Newsletter

Subscribe to get my latest content by email. I won't send you spam. Unsubscribe at any time.


Similar Searches:

  • Convert Github Raw version to valid jsdelivr CDN
  • Link and execute external JavaScript file hosted on GitHub