Is it necessary to merge the compressed js files (js plug-ins, libraries, etc.) used in the page?

for example, I introduced the following js files into my page (not the js, written by myself in the project, but the js files such as plug-ins, libraries, etc.):

modernizr-3.2.0.base.js,
prefixfree.min.js,
jquery-1.11.3.min.js,
jquery.easings.min.js

do I need to merge them into one js file to import?
what is the general method of merging if necessary?

Mar.11,2021

this kind of question cannot be answered.
this consideration is multifaceted, for example, if you package, whether js needs to be changed, and whether some of the changes will cause the entire file to be cached, then you can accept it. For example, whether there are many js files, and whether you need to merge and reduce socket links.
merging and non-merging must have their pros and cons. The general result is a partial merger, and the problem is what your system can put up with and what it can't.


if these files are few, they can be tolerated, if there are more, they will obviously speed up loading, and can be packaged with tools such as webpack.


webpack are all done

Menu