Yes, you’re right. This con applies to a traditional web site where the view is rendered server side with some server side framework. For a single page application created with Angular 2, React, Vue or any other front end frameworks there would be mostly a single entry JS file. And all necessary components would be imported using ES6 modules (import) or CommonJS (require)

Writing JS, TS, Vue, #C, and fostering teams to release customer value n-times a day. Creator of billid.app and writer on abrickis.me

Writing JS, TS, Vue, #C, and fostering teams to release customer value n-times a day. Creator of billid.app and writer on abrickis.me