Here is some of my learning I had while coding for few years.
1. For resources instead of hosting locally, it is much beneficial to use CDN for following reasons.
a. No fear of deprecation, it is updated regularly.
b. Chance of its cache is there so other user may benefit from it.
c. No fear of link breaking.