Angular 2 Initial loading progress

前端 未结 3 609
暗喜
暗喜 2021-02-01 18:35

I\'ve tried my best to bring the bundle size of Angular 2 down and have been relatively successful in reducing the size to ~300kb (Angular 2 + jquery + bootstrap + some other sm

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-01 18:55

    You could try to add a second script in your index.html, which would then load all your other files (just as the index.html is doing now). Then you'd have a bunch of AJAX requests for your files and could add them to the DOM. To track the progress, you could try to use an HTTP HEAD request with the Content-Length header.

提交回复
热议问题