CDN 还是下载到目录?
CDN or download into directory?
还没有找到很多资源 - 例如,如果我想在我的应用程序中使用 jQuery,将 jQuery 下载到我的项目目录中会更有用,还是link google CDN有什么用?
CDN -
更少的延迟
Using a CDN: Using a CDN helps bring resources closer to the user by
caching them in multiple locations around the world. Once those
resources are cached, a user’s request only needs to travel to the
closest Point of Presence to retrieve that data instead of going back
to the origin server each time.
没有CDN - 离线测试localhost
You can test your website on your local machine without network
connectivity if you serve your libraries locally while in development.
没有 CDN 猴子补丁
You can modify and fix certain issues in a library that create
breaking issues in your software and host these. If you use a CDN you
will have to use the original library's code instead thus losing these
fixes.
还没有找到很多资源 - 例如,如果我想在我的应用程序中使用 jQuery,将 jQuery 下载到我的项目目录中会更有用,还是link google CDN有什么用?
CDN - 更少的延迟
Using a CDN: Using a CDN helps bring resources closer to the user by caching them in multiple locations around the world. Once those resources are cached, a user’s request only needs to travel to the closest Point of Presence to retrieve that data instead of going back to the origin server each time.
没有CDN - 离线测试localhost
You can test your website on your local machine without network connectivity if you serve your libraries locally while in development.
没有 CDN 猴子补丁
You can modify and fix certain issues in a library that create breaking issues in your software and host these. If you use a CDN you will have to use the original library's code instead thus losing these fixes.