Before your answer specifically I suggest you read the related topics on CDN:
Creating a CDN - content delivery network
; CDN vs. join JS/CSS
among others, but here are very interesting clarifications on definition, nature and recommended uses of CDN.
1- When you hire a hosting for the site, CDN is already included
in the hosting service? Or depends on the hosting?
Hosting can offer, partner or recommend certain CDN services, for example, I use the Dreamhost and it facilitates the use of Cloudflare for CDN and other services. However, they are different subjects, because you hire a hosting service (shared, vps, cloud, dedicated...) for content management, domain, emails, files, databases and the CDN is only one among the various services, where at more robust or dedicated hosting, you can even set up your own CDN, for example.
2- And if not included the CDN service for hosting, I would have
then perform the hiring, because it is a service to part,
correct? This would influence something because I have the hosting in a
corner and CDN service in another... Would need to do some
settings?
Studying the links listed above, you will see that using CDN to increase speed is exactly the opposite of leaving "everything in the hosting"; because by nature when loading the site, the content will be requested in several different locations in order to provide more speed. In many situations you don’t need to pay for a specific service, as there are a number of free services for various types of content, such as: Sources, Javascript libraries, Icons, among many others.
Finally, I recommend that you analyze in each specific situation the need to use CDN, even before using it, think if this request is necessary; since it is currently recommended for high SEO performance, Putting everything together in one file or compiling everything together minificado can make your site much faster.
I understood. Thank you very much!
– ijrdev
I’m glad I helped, abs!
– Leonardo Negrão