I have a habit of storing everything locally and making sure my site is able to run even on local server without internet connection. This has been my principle ever since so that my site can run stand alone offline, and most specially for developing phase where my page refreshes are super quick and I can continue to develop my sites even without internet.
So in all my web applications and sites, I always download the packages and libraries I need and locally link to them for includes and what not.
I know more and more people are linking / importing libraries via public CDNs and stuff so I was wondering if there's any real SIGNIFICANT benefits to doing that?
I have identified the obvious (feel free to correct me):
PRO LOCAL - faster development experience - zero dependency on other servers that may break - faster user experience (?) since the site pages executes rapidly working with files/libraries on the same server already (localized)
PRO CDN - saves web space (but in today's world, this seems insignificant.. in a typical site you're able to save maybe 10-20mb worth of space only and what is that in the grand scheme of things nowadays and cheap servers and all)
- lighter on server (?) = I'm actually wondering about this. Will loading from a CDN be lighter on the server's processor ram and i/o disk, or will it be worse since the executing document (eg. index.php) takes bit longer to finish there by hogging threads/mem/cpu cycles?
Thanks all.