Angular — Performance issue caused by setTimeout() and setInterval()
Have you ever done performance tuning for your Angular application? Angular has traded-off some of its fault tolerance for convenience. Just several simple and inconspicuous mistakes can destroy your performance. Hence, I believe if you are an Angular programmer, you will eventually need to face the performance issue someday. There are mainly two causes that may slow down your application:
- Your application keeps doing unnecessary re-rendering.
- Your application keeps triggering unnecessary…