Closed llxlr closed 2 years ago
博客莫名其妙炸了,是因为这个原因吗?
把主题中所有的 cdn.jsdelivr.net 换成了 fastly.jsdelivr.net 就没事了。参考至:Jsdelivr CDN 加速服务又被 DNS 污染了(附临时解决方案)
把主题中所有的 cdn.jsdelivr.net 换成了 fastly.jsdelivr.net 就没事了。参考至:Jsdelivr CDN 加速服务又被 DNS 污染了(附临时解决方案)
可以
请问怎么更改cdn的前缀啊,翻了js没找着
我在vscode里打开的主题文件夹(方便搜索替换),搜索 cdn.jsdelivr.net 然后把主题中所有的 cdn.jsdelivr.net 替换成 fastly.jsdelivr.net 。
从 Windows 版邮件https://go.microsoft.com/fwlink/?LinkId=550986发送
发件人: Niko @.> 发送时间: Friday, May 20, 2022 9:06:38 PM 收件人: amehime/hexo-theme-shoka @.> 抄送: Or0kit @.>; Comment @.> 主题: Re: [amehime/hexo-theme-shoka] 关于jsdeliver在国内的ICP许可证被吊销 (Issue #65)
请问怎么更改cdn的前缀啊,翻了js没找着
― Reply to this email directly, view it on GitHubhttps://github.com/amehime/hexo-theme-shoka/issues/65#issuecomment-1132879506, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXNT6PXOJVZUDTMU7JFGYF3VK6E55ANCNFSM5WEUGXDA. You are receiving this because you commented.Message ID: @.***>
我在vscode里打开的主题文件夹(方便搜索替换),搜索 cdn.jsdelivr.net 然后把主题中所有的 cdn.jsdelivr.net 替换成 fastly.jsdelivr.net 。 从 Windows 版邮件<https://go.microsoft.com/fwlink/?LinkId=550986>发送 … ____ 发件人: Niko @.> 发送时间: Friday, May 20, 2022 9:06:38 PM 收件人: amehime/hexo-theme-shoka @.> 抄送: Or0kit @.>; Comment @.> 主题: Re: [amehime/hexo-theme-shoka] 关于jsdeliver在国内的ICP许可证被吊销 (Issue #65) 请问怎么更改cdn的前缀啊,翻了js没找着 ― Reply to this email directly, view it on GitHub<#65 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXNT6PXOJVZUDTMU7JFGYF3VK6E55ANCNFSM5WEUGXDA. You are receiving this because you commented.Message ID: @.***> !这么绝,直接全部替换?!
嗯,我不是学前端的 ,不懂,乱试了一番真的就好了。记得备份文件吧。
从 Windows 版邮件https://go.microsoft.com/fwlink/?LinkId=550986发送
发件人: @.> 发送时间: 2022年5月20日 21:46 收件人: @.> 抄送: @.>; @.> 主题: Re: [amehime/hexo-theme-shoka] 关于jsdeliver在国内的ICP许可证被吊销 (Issue #65)
我在vscode里打开的主题文件夹(方便搜索替换),搜索 cdn.jsdelivr.net 然后把主题中所有的 cdn.jsdelivr.net 替换成 fastly.jsdelivr.net 。 从 Windows 版邮件https://go.microsoft.com/fwlink/?LinkId=550986发送https://go.microsoft.com/fwlink/?LinkId=550986%3E%E5%8F%91%E9%80%81 … ____ 发件人: Niko @.> 发送时间: Friday, May 20, 2022 9:06:38 PM 收件人: amehime/hexo-theme-shoka @.> 抄送: Or0kit @.>; Comment @.> 主题: Re: [amehime/hexo-theme-shoka] 关于jsdeliver在国内的ICP许可证被吊销 (Issue #65https://github.com/amehime/hexo-theme-shoka/issues/65) 请问怎么更改cdn的前缀啊,翻了js没找着 D Reply to this email directly, view it on GitHub<#65 (comment)https://github.com/amehime/hexo-theme-shoka/issues/65#issuecomment-1132879506>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXNT6PXOJVZUDTMU7JFGYF3VK6E55ANCNFSM5WEUGXDA. You are receiving this because you commented.Message ID: @.***> !这么绝,直接全部替换?!
― Reply to this email directly, view it on GitHubhttps://github.com/amehime/hexo-theme-shoka/issues/65#issuecomment-1132920981, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXNT6PS7MHGJRLZ4HI3YPVDVK6JUNANCNFSM5WEUGXDA. You are receiving this because you commented.Message ID: @.***>
其实没有那么麻烦,把这个jsdelivr字符串去掉就好
其实没有那么麻烦,把这个jsdelivr字符串去掉就好
你还可以换成例如像字节跳动资源库这些都行,还更快
其实没有那么麻烦,把这个jsdelivr字符串去掉就好
你还可以换成例如像字节跳动资源库这些都行,还更快
除了 gh/amehime/MiniValine@4.2.2-beta10/dist/MiniValine.min.js
,当然可以发布到 npmjs 来解决
现在的状态比较怪,两点时候还是连接重置,而后四点又能访问,还有待观察 https://github.com/next-theme/hexo-theme-next/pull/507
我的博客也是突然炸了,果然跟jsdelivr有关,老是访问没有响应,换成了 fastly.jsdelivr.net就没事了
楼主楼主,我换成fastly之后,会报一个错误,lozad is not defined
看看你上面那个报错,没有换完全。而且换完之后可以浏览器先禁用缓存、再刷新。
@Niko-Karen 找半天终于找到原因了,cdn是换过了,但是我本来以为是lazad版本太老了,我去npm找了一个lazyload的链接放上去了,原来npm上有一个lazad的包,还原了链接好了,但是吧,这个项目不大,浏览器一打开,cpu和内存飙升,怎么着手去优化一下呢
在群里有人说jsdeliver被墙了,我最近也感觉访问确实有点问题
看起来是国内的节点早换成全球的了,但我近期才有问题