What's faster for including scripts, using CDN (Google) or storing them locally in website's root?

前端 未结 7 1310
眼角桃花
眼角桃花 2020-12-02 14:55

What\'s faster for including scripts, using CDN (Google) or storing them locally in website\'s root?

相关标签:
7条回答
  • 2020-12-02 15:23

    Depends on how fast your server is. The CDN however is probably faster, your client may have the file already cached from another website.

    It'll offload a lot of bandwidth from your site, however you rely on the stability of a 3rd party to maintain the file. (Although I don't see google having issues any time soon)

    0 讨论(0)
提交回复
热议问题