I'm writing a test with AngularJS 2, then i look at the "Network" section of the Developer Tools and I see : 35 requests.
RXJS only: 20 requests.
Since the browsers have a limited amount of connections, the page loads in 400ms, even if it's little-sized files.
In this test, i just have:
- main.ts
- app.component.ts
- index.html
I don't have another component.
What I would like to do is lower the 35 requests. Theorically, i should have 4 requests: index.html, angular2.js, main.js and app.component.js .
Is it even possible or AngularJS 2 is built in a way there will always have lots of little requests ?
EDIT: I'm using gulp to launch tsc.