DEV Community

loading...

Discussion on: Should we use CDN or locally download libraies?

Collapse
tirthaguha profile image
Tirtha Guha

Depends on your preference actually. If you want to serve static sites only and prefer a runtime inclusion, then CDN suits you. Be careful to take care of security though. It's untrusted third party, and you have no control over the changes in the source.

However, if you're more comfortable with a compile time engagement than runtime engagement, then use package manager. A little safer, since you know what version of library you're including.