Is Google’s CDN for jQuery available in China?

后端 未结 10 608
别那么骄傲
别那么骄傲 2020-12-13 01:09

Does anyone know if Google\'s CDN for jQuery is available in China?

http://code.google.com/apis/ajaxlibs/

I might have a project where I\'ll need to support

10条回答
  •  难免孤独
    2020-12-13 01:14

    As other answers suggest, no its not reliable to use Google CDN for visitors from China.

    To reliably load jQuery from CDN, you have to fallback to alternative CDN. If you load from Google CDN and fall back to another one, your visitors will have to wait for too long for the first request to fail before the browser sends the second request to the fallback CDN. I would recommend you to use alternative jQuery CDN as preferred option, and fallback to Google CDN only if the other one is down. Here is how to do it:

     
        
    

    We are doing it the opposite way and use some other CDN as your preferred option and fallback to Google CDN to avoid failed requests and waiting time.

提交回复
热议问题