jQuery Linking vs. Download?

前端 未结 6 899
囚心锁ツ
囚心锁ツ 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:38

    Id reccomend downloading it and storing jquery.js locally on the same server. That way if the linked to file goes down (not that google ever do).

    A big argument is that if jquery release an update that removes a function that you need you wont be shafted over and you'll have time to fix it

提交回复
热议问题