Is Google’s CDN for jQuery available in China?

后端 未结 10 611
别那么骄傲
别那么骄傲 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:38

    If there's a chance the Google CDN would be blocked in China, just go ahead and use a local version of jQuery on your own site.

    There are other advantages to not relying on Google too - if you're writing a lot of jQuery code you could compress jQuery and your app all in one file and save some HTTP requests.

    Google's Closure Compiler may be able to save you a lot of bytes by removing functions you're not using - although last time I checked it didn't do this for jQuery very well.

提交回复
热议问题