-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Google JQuery CDN [https://ajax.googleapis.com] is banned in China #18367
Comments
@mxnet-label-bot add [Website] |
jquery has its own CDN which isn't affected by the blocking of google CDN. so the simplest approach to try is to use that https://code.jquery.com/ could you summarize how the current website hosting works? to have more control on this we could use cloudfront for static hosting, which can also improve stability. |
@ys2843 - Thanks for looking into this, is the jquery loading time causing huge delay in loading MXNet website in China? I remember a ticket by @aaronmarkham for Apache Infra for CDN in China was closed. @szha - Is there a way to statically host in China and how to overcome with Apache processes? |
ECharts project worked on CDN in China according to this board report: https://cwiki.apache.org/confluence/display/INCUBATOR/May2019 We may reach out to them for their experiences. Update: in a later report they wrote: Seems that using custom CDN is possible. |
Good idea, we could simply replace google CDN with
Most of the resources are hosted locally with the website and the only thing not reachable is JQuery. |
@ys2843 thanks for sharing. Is the speed adequate for the items hosted locally with the website? If so, you may also consider simply downloading the uglified javascript file and include it with the website codebase. |
@szha It is hard to tell about the speed of hosting it locally with website. But currently there are complains about the loading speed (Avg 19s) of MXNet website from China. Although include it with website codebase is definitely the most reliable way. |
Agree, I think replacing with jQuery CDN for now is the fastest and easiest way. |
Description
In MXNet website, JQuery script is loaded from google CDN in
<head>
But this CDN is known banned in China, as you can see here:
Here is my own test using Chinese servers:
It not only blocks website from loading, but also breaks all the interaction on MXNet website. (e.g. dropdown, installation guide, search etc. )
Error Message
ReferenceError: jQuery is not defined[Learn More]
Proposed solutions
While China is the number one country using the MXNet website. We need to solve this problem so that users in China can visit MXNet website without any problem. Here are 3 solutions:
The text was updated successfully, but these errors were encountered: