Among the performance recommendations of a web system are:
- Use CDN (in the case of jQuery, Bootstrap, etc.)
- Add JS and CSS to decrease the number of requests
It turns out that these two rules go against each other. If I use jQuery and Bootstrap CDN, for example, I'll be increasing the number of requests. On the other hand, if I join jQuery and Bootstrap in a single JS and CSS, I will be decreasing the number of requests, but I will not be using CDN.
In this way I would like to know in which situations each of the two alternatives gives me the best performance.