When you say other pages will load longer - it won’t be the longer in overall. The whole app size remains the same. When you reuse Module A across several lazy loaded modules - it’s extracted into a separate file which gets included with the first page loaded. It won’t be duplicated.

It is truth that users consider lots of different aspects. But, it doesn’t mean that we shouldn’t target this one. Especially, that it doesn’t hurt to make our app load faster. You don’t give up neither functionality nor something else.

Furthermore, in Angular you could start loading lazy modules when the page was loaded so that the perceived page load time will be reduced. This way you could achieve both fast initial load time and fast consequent navigations.

Sergey Gultyayev
Sergey Gultyayev

Written by Sergey Gultyayev

A front-end developer who uses Angular as a main framework and loves it

Responses (1)