github raw文件cdn加速
ref:https://blog.csdn.net/neve_give_up_dan/article/details/104817638
可以使用该CDN网站进行加速:
https://www.jsdelivr.com/
官方示例:
Load any GitHub release, commit, or branch:
/gh/user/repo@version/file
Load exact version:
/gh/jquery/jquery@3.1.0/dist/jquery.min.js
/gh/jquery/jquery@32b00373b3f42e5cdcb709df53f3b08b7184a944/dist/jquery.min.js
Use a version range instead of an exact version (only works with valid semver versions):
/gh/jquery/jquery@3/dist/jquery.min.js
/gh/jquery/jquery@3.1/dist/jquery.min.js
Omit the version completely or use "latest" to load the latest one
/gh/jquery/jquery@latest/dist/jquery.min.js
/gh/jquery/jquery/dist/jquery.min.js
Get a directory listing:
/gh/jquery/jquery@3.1.0/
/gh/jquery/jquery@3.1.0/dist/
演示示例:
原来的资源链接是这样的
https://raw.githubusercontent.com/wolfdan666/BlogPic/master/test.jpg
后来的资源链接就可以这样访问
https://cdn.jsdelivr.net/gh/wolfdan666/BlogPic/test.jpg
或者
https://cdn.jsdelivr.net/gh/wolfdan666/BlogPic@master/test.jpg
!!补充, 嫌麻烦可以直接油猴安装脚本【Github 增强 - 高速下载】,地址:
https://greasyfork.org/scripts/412245
https://github.com/XIU2/UserScript
就可以直接在github使用了