介绍
因为某些原因,Github在国内访问不稳定,下载仓库资源非常缓慢,可以用CDN解决这个问题。
jsDelivr是免费的CDN,而且最重要的是在中国大陆唯一有许可证的公共CDN,速度非常快。
使用
引用jsDelivr:
https://cdn.jsdelivr.net/gh/user/repo@version/file
详细规则访问官网:
https://www.jsdelivr.com
图床
例如:https://cdn.jsdelivr.net/gh/iwenyi/tuchuang/UptimeRobot%E9%A1%B5%E9%9D%A2404%E5%A4%B4%E5%9B%BE.png#vwid=1394&vhei=751
效果:
这样可以使用Github+jsDelivr搭建图床,我之前写过:https://ejhu.com/archives/16/
下载
例如:https://cdn.jsdelivr.net/gh/iwenyi/bing/bing.php
效果: