9
Among the performance recommendations of a web system are:
- Use CDN (in case of jQuery, Bootstrap, etc)
- Join JS and CSS to decrease the number of requests
Turns out those two rules go against each other. If I use jQuery and Bootstrap CDN, for example, I will be increasing the number of requests. On the other hand, if I join jQuery and Bootstrap into a single JS and CSS, I’ll be decreasing the number of requests, but I won’t be using CDN.
This way I would like to know in which situations each of the two alternatives provides me the best performance.
About the second paragraph: Based on what you say that if I have many files I should join them and if I have few it is better to use CDN?
– user7261
In any case it is good to use CDN. This helps in performance and SEO.
– PauloBoaventura