~/talk

How to Improve Angular 2 Performance?

TalkinRussianat JavaScript fwdays'17 · on Saturday, 2017-04-22· [angular, web-performance]
links:none on file
slides:none on file

A postmortem of optimizing a real Angular 2 application showing practical steps: enable tree-shaking, switch from JIT to AOT compilation, use Zone.js with proper OnDestroy cleanup to prevent leaks, prefer push change detection over many bindings, debounce inputs and cancel stale requests, and move data composition up using RxJS and a HATEOAS-style REST approach. These changes reportedly reduced the bundle from about 2 MB to a 600 KB build, removed memory leaks, and produced measurable improvements in load and response times after 128 hours of work.

AI-written summary · about

  1. 0:00Introduction
  2. 1:51Bundle size
  3. 8:37JIT vs AOT
  4. 12:35App architecture
  5. 15:02Binding efficiency
  6. 16:48Caching REST APIs
  7. 21:54Zone.js leaks
  8. 24:29Two-way binding
  9. 27:20Memory strategies
  10. 28:27DOM rendering
  11. 30:37Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.