jQuery Linking vs. Download?

前端 未结 6 890
囚心锁ツ
囚心锁ツ 2020-12-09 13:08

Which way is better? To link to the jQuery Pack at http://ajax.googleapis.com. Or to download the appropriate file and link locally? Does it matter? Is there a chance the li

6条回答
  •  有刺的猬
    2020-12-09 13:42

    What if the user comes from a country where Google is banned? Also, some time ago we had to pay for international internet traffic (while regional traffic was "free") in my country an I suspect it may be still the case in some other countries. Users would be upset for having to pay for jQuery. Even minimized. It's safer to keep the files you need on your server.

    EDIT: Another reason for not using jQuery from Google servers (if used on your intranet: https://meta.stackexchange.com/questions/10071/employer-blocks-jquery-from-google-doh)

提交回复
热议问题