With any sizable website/app, you should already be using a handful of 3rd party libraries or frameworks in your code. When the time comes to host a Production site, you need to make a decision to:
- Embed 3rd party libraries and host them together with the site, or
- Reference them using external CDN
Most of the time your should reference them using external CDN. However there are cases where it’s better to include/embed them in your own code and host them together with the site.
Let’s take a closer look at the pros and cons of both options and when it’s better to use one vs the other.read more