Some problems about the construction of front-end project

jquery and bootstrap have always been introduced first. Then introduce other parts separately, whether js or css. In this case, the size of a single file is small, but more http requests are needed

however, when a single-page application is built, all the modules such as jquery and so on are packaged into an app.js directly with webpack. In this case, a single file is large, but only a few http requests are required

so should it be loaded separately or packaged to build a multi-page and multi-component project?

Mar.14,2021

moderate merging, larger packages referenced separately, not only all packages are packaged and loaded separately.

Menu