Slow loading of AngularJS app in IE - add progress bar

前端 未结 5 1193
谎友^
谎友^ 2021-01-27 08:08

UPDATE1: Started using ngProgress, but not giving required effect in IE.
Final Update: Best solution found. See last answer below.


The AngularJS application ha

5条回答
  •  孤独总比滥情好
    2021-01-27 08:52

    From what you have said the slow loading is due to AngularJS working as opposed to data loading [as evidenced by the fact its slower in IE than Chrome]. If this is true then a loading indicator wont help as it'll just freeze too.

    You are far better off following normal performance techniques in angular such as:

    • Show less on the page, a user surely doesnt need to see 100 fields at once? Consider paging.
    • For items that won't change use bind once like so: {{::vm.name}}
    • On the subject of handle bars, its generally more efficient to use
      rather than handle bars {{::vm.name}}

提交回复
热议问题