Why Google CDN? Why not my own server?
- Google’s huge CDN (content delivery network) can deliver the file much. Since Google has large data centers all over the world, these files will be served from data centers geographically closer to your users. This helps to reduce network latency and add to reliability, scalability and so on.
- The more sites that include Google’s google.load() API the greater the chance that a user has already has the file cached, thus enabling your site to load faster as the script will not need to be downloaded.
- You save bandwidth as you no longer have to serve the file(s).
- The versioning system that Google has created makes it effortless to include specific versions of these libraries.
All you need to do is make a Google’s Libraries API call google.load() like:
- You’re dependent on the CDN infrastructure. If they are down, your website will be hardly usable, too. But that case u have to write extra codes to check the desired library loaded or not.
- You cannot influence bandwidth and carriers of the delivery provider’s network.