Greetings I have 10 JS files of 5-10 KB on IIS 10. When entering the site (If the user does not have a cache (That is, CTRL + F5)), the site loads 10-20 seconds each JS file. And the rest of the CSS, IMG (Which 2 mb) for 2 seconds or less.
How do I configure this system so that everything works quickly? Combine JS into one tried. It does not work, the site simply gives hundreds of errors in the console (Google Chrome in F12) and JS files are not loaded.
There are ways to optimize everything?
Here are the screenshots:
Error if you turn JS scripts into one:

