How can I check or prove that a module in angular2 is lazy loaded?

前端 未结 3 1422
南笙
南笙 2021-02-08 12:21

If I have access to an angular2 application\'s code and there is a module that is supposedly lazy loaded, is there a way, independent of examining the code, that I can test that

3条回答
  •  天涯浪人
    2021-02-08 12:30

    You can check if your module is being loaded as lazy or non-lazy fashion . Just do Inspect element(right click mouse in browser) or Ctrl+Shift+I , go to network tab and see you are able to see chunk.js file in the network calls. if yes , your module is being loaded in lazy manner.

提交回复
热议问题