Tech Stack:
- Angular 2
- System JS
- Typescript
- Canvas (To show a FPS counter)
- SVG
Running code(That handles lots of computation/paint/redraw) in a zone outside of angular 2, can make it performant.
Expirement:
Render 10000 svg boxes and bind them with mouse events. Move them around and check performance.
Results:
So, as you can see, little optimization can lead to great improvements.
Note: This is a derived project and just made for fun and learning purposes.