Bundling .js files vs CDN

前端 未结 4 1284
有刺的猬
有刺的猬 2020-12-23 17:06

In order to improve performance of our web pages, we are recommended to use CDNs to serve .js files on our web pages. That makes sense.

Also, we are rec

4条回答
  •  一向
    一向 (楼主)
    2020-12-23 18:01

    As others have already stated, the answer is both if possible. Bundled (and minifying) gives a benefit to your users because it decreases the page weight. The CDN benefits your servers because you are offloading work. Generally speaking, you need not optimize either unless you have observed performance issues or you just have nothing better to do.

提交回复
热议问题