Angular 2 Initial loading progress

前端 未结 3 604
暗喜
暗喜 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:48

    Here are some other things that you can do to reduce the loading time of the static resources.

    • Try a hosting solution supported by CDN such as firebase hosting - https://firebase.google.com/docs/hosting
    • Make your app a progressive web app. Progressive web apps uses service workers to cache the static resources inside user's device, so they needs to be update only when a new version of your application has been released - https://angular.io/guide/service-worker-getting-started

提交回复
热议问题