rejetto forum

Software => Other languages => HFS ~ HTTP File Server => 中文 - Chinese => Topic started by: NaitLee on December 03, 2020, 04:49:38 AM

Title: 国内 code.jquery.com jQuery CDN 问题
Post by: NaitLee on December 03, 2020, 04:49:38 AM
包括此论坛的许多网站都在使用 code.jquery.com 作为其获取 jQuery 脚本的 CDN。
但是在我这里试图访问 code.jquery.com 的话对面会关闭连接——而且是在很长时间后。
这导致了我访问这个论坛的时候,如果不全局禁用脚本,加载会卡在这个 jQuery 上,特别慢。
而且就算我不禁用脚本,也不能使用大多数脚本功能,比如登录。

大家有没有这样的情况呢?有解决方法的话会更好 ;)
Title: Re: 国内 code.jquery.com jQuery CDN 问题
Post by: LeoNeeson on December 03, 2020, 08:06:54 AM
您可以尝试 https://decentraleyes.org/

它是三个主要浏览器(Firefox,Chrome 和 Opera)的插件,可绕过 Google CDN 在本地加载这些文件(并会在由于某种原因而被 Google 阻止的情况下(例如在中国)启用全部功能)。



You can try https://decentraleyes.org/

It's a plugin for the three major browsers (Firefox, Chrome, and Opera) that loads those files locally, bypassing Google CDNs (and would enable full functionality where Google for some reason is blocked, like in China).

(My chinese text, was translated by Google. Sorry if it was bad translated)
Title: Re: 国内 code.jquery.com jQuery CDN 问题
Post by: NaitLee on December 03, 2020, 09:13:41 AM
Ah, thanks ;)

致访客们:
如果访问不了 Chrome Web Store,插件 Decentraleyes 也可以在 GitLab (https://git.synz.io/Synzvato/decentraleyes/-/releases) 获取。
Title: Re: 国内 code.jquery.com jQuery CDN 问题
Post by: LeoNeeson on December 04, 2020, 06:08:44 AM
不客气。。。 :)

还有一个选择:LocalCDN
https://addons.mozilla.org/en-US/firefox/addon/localcdn-fork-of-decentraleyes/
https://codeberg.org/nobody/LocalCDN
https://www.localcdn.org/

LocalCDN 是一个分散的分支,包含了更多的 CDN 库,但仅适用于 Firefox。如果你想的话,请留下你的评论作为其他用户的参考(在你测试他们之后的几天内),关于哪些浏览器扩展更适合你(在中国)。

@话题外:谷歌翻译是最好的英汉翻译吗?(你知道其他更准确的吗?)。我现在使用百度,似乎更好。



You welcome... :)

One more alternative: LocalCDN
https://addons.mozilla.org/en-US/firefox/addon/localcdn-fork-of-decentraleyes/
https://codeberg.org/nobody/LocalCDN
https://www.localcdn.org/

LocalCDN is a fork of DecentralEyes, with some more CDN libraries included, but only for Firefox. If you want, please leave a comment as reference for other users (in a few days, after you test them) about what of those browser extension works better for you (in China).

@Offtopic: Is Google Translator (https://translate.google.com/?hl=en&sl=zh-CN&tl=en) the best translator English to Chinese? (Do you know any other that's more accurate?). I'm now using Baidu (https://fanyi.baidu.com/#en/zh/) and it seems to be (https://www.baiduinenglish.com/baidu-translate-and-how-to-use-it.html) better (https://ltl-beihai.com/baidu-translate-vs-google-translate/).