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:

  1. Your application keeps doing unnecessary re-rendering.
  2. Your application keeps triggering unnecessary…



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Liu Ting Chun

Web developer from Hong Kong. Most interested in Angular and Vue. Currently working on a Nuxt.js + NestJS project.