Answer the question
In order to leave comments, you need to log in
When should you use a CDN?
When should you use a CDN?
Let's say I connect a swiper slider, it has a cdn, is it better to connect through it or is it better to download the source files to my host?
We are talking about popular libraries ala fancybox, swiper etc
Answer the question
In order to leave comments, you need to log in
Well, as it were, it is believed that the library will load faster from the CDN to the client than from your host. But personally, I prefer to have everything of my own))
Well, it was in the days of http and tube Internet.
The idea to connect popular scripts from the cloud was born as an attempt to speed up the rendering of the site.
It was believed that the desired script would already be cached on the client.
But the channels have become faster. Gained popularity https.
And of the pluses, only the ease of implementation remained (a couple of lines in the page code and you don’t need to pour anything on the host)
But the minuses have become BOLD, especially in terms of getting users. You will have to list them all as
organizations that could theoretically receive information about the visit. But who in xUSSR cares about site builders?
You need a CDN if your site is popular all over the world and you need fast delivery of statics even to Australia, even to Canada, even to Russia.
If your site works for one region (say Russia), then placing static on your server will make the site faster than using a CDN.
PS
Of course, if you have millions of visitors a day and megatons of static are distributed, then you need to consider what is more profitable in terms of money - a cluster of your servers or CDN services. Although if you had such traffic, you would not ask questions on Habré :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question