Last post Jul 25, 2017 01:59 AM by Cathy Zou
Jul 24, 2017 07:39 AM|wibowowiwit|LINK
Which One is Better between assign Jquery in local server directory vs Jquery sourced from https://code.jquery.com/jquery-3.2.1.js ?
Thanks & Regards.
Jul 24, 2017 09:38 AM|kaushalparik27|LINK
If you are working on a website that is expected to work in intranet only then, use local server directory. If you are working on a website that is expected to work on internet as well, then you should try CDN (https://code.jquery.com/jquery-3.2.1.js)
There are advantages and disadvantages of CDN:
Then finally, when to use CDN:
Jul 25, 2017 01:59 AM|Cathy Zou|LINK
The use of a Content Delivery Network (CDN) for public web sites is quite common.
If you don't want to download and host jQuery yourself, you can include it from a CDN (Content Delivery Network).
One big advantage of using the hosted jQuery from Google or Microsoft:
Many users already have downloaded jQuery from Google or Microsoft when visiting another site. As a result, it will be loaded from cache when they visit your site, which leads to faster loading time. Also, most CDN's will make sure that once a user requests
a file from it, it will be served from the server closest to them, which also leads to faster loading time.