Google CDN公共库本地化加载插件

由于大陆全面封杀Google,导致使用Google公共库的网站加载异常.

为了加快网站访问速度,使用插件使其本地化访问,大大加快了加载速度.

因此,我在网上找了插件安装,非常有效!

1 推荐插件:

gooreplacer4chrome:

https://github.com/jiacai2050/gooreplacer4chrome

ReplaceGoogleCDN:

https://github.com/justjavac/ReplaceGoogleCDN

2 如果你是站长,则可以替换网页中的Google库,用国内公共库

css.net公共库

https://css.net/

中科大

https://servers.ustclug.org/2015/09/google-revproxy-add-cache/

3. 2024年还能用静态CDN公共库

  • Zstatic:https://s4.zstatic.net
  • 渺软:https://cdn.onmicrosoft.cn
  • 南科大:https://mirrors.sustech.edu.cn/cdnjs

批量替换代码
find . -type f -exec sed -i 's#cdn.jsdelivr.net#jsd.onmicrosoft.cn#g' {} +

此处评论已关闭