Is it better to minify javascript into a single bundle for the whole site, or a specific-to-each-page bundle?

后端 未结 4 1535
萌比男神i
萌比男神i 2021-01-03 22:18

When minifying JavaScripts together in web-development, is it better from the user-loading-time point of view to:

  1. make one single big bundle of JavaScript cont
4条回答
  •  时光说笑
    2021-01-03 23:11

    I would much rather have 1 minified js file for the entire site. Over a period of time this always performs better than having multiple js files.

    Check out this link for more details

提交回复
热议问题