Is there a problem loading a bunch of js, in my web program?

my web program has a lot of js,. It will slow down the loading of the program and feel like you can"t remove any of them. Some of them are also loaded on demand.

I look at their websites, and many of them load js,. Is it okay for me to do this?

Baidu has some information, it seems to be possible to have this, lazyload, is simply used, some of these js are dependent, and they don"t dare to make a big deal out of it. Is it better to do this kind of thing backstage? Which template page needs, which js, output will be fine.

Mar.29,2021

if you can't remove it, reduce the number of js file requests: use Gulp or Webpack to automatically merge one or more of these js and compress them before publishing to the production environment.

Menu