Hexo博客jsdelivr资源访问超时导致博客打不开

最近访问自己博客的时候,发现首页访问很慢,甚至打不开,有些浏览器可以,打开控制台,发现访问的前端资源很多都是超时的。

GET https://cdn.jsdelivr.net/npm/pace-js@1.2.4/themes/blue/pace-theme-minimal.css net::ERR_CONNECTION_TIMED_OUT
GET https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.4/css/all.min.css net::ERR_CONNECTION_TIMED_OUT
GET https://cdn.jsdelivr.net/npm/animate.css@3.1.1/animate.min.css net::ERR_CONNECTION_TIMED_OUT
GET https://cdn.jsdelivr.net/npm/pace-js@1.2.4/pace.min.js net::ERR_CONNECTION_TIMED_OUT
GET https://cdn.jsdelivr.net/npm/animejs@3.2.1/lib/anime.min.js net::ERR_CONNECTION_TIMED_OUT

看网上说jsdelivr挂了,那换用其他服务资源。
我的博客Hexo版本:5.4.0, Next版本:8.7.1;
换用unpkg的资源,配置如下:
修改themes/next/_config.yml,将plugins改为unpkg即可。

1
2
3
vendors:
internal: local
plugins: unpkg

改后重启或重新生成,又可快速的访问了。


Hexo博客jsdelivr资源访问超时导致博客打不开
https://river106.cn/posts/f0cdf670.html
作者
river106
发布于
2022年6月7日
许可协议