~/talk

Profiling Angular apps like a Shark

Talkat AngularConnect 2019 · 2019-09-19..09-20· [angular, web-performance]
slides:none on file

Browser rendering must meet RAIL budgets: 16 ms per frame, response <50 ms, animation <10 ms, load <5 s. Use DevTools Performance tab (record, bottom-up view) in refresh in Incognito to find hotspots: a decimalToHex utility runs repeatedly and cuts a 4 s load toward 1 s when replaced by CSS rgb, console.log costs 195ms during profiling, and hundreds of ngCheck runs vanish when components use change detection OnPush. Unsubscribe observables (ngOnDestroy) to avoid accumulating subscriptions and memory leaks.

AI-written summary · about

  1. 0:00Start
  2. 2:32About Me
  3. 4:08Refresh Rates
  4. 5:00Shipping a frame to screen
  5. 9:03RAIL Model
  6. 10:33DevTools Performance Tab
  7. 17:59Profiling Process
  8. 21:38Memory Leaks
  9. 22:06Type of Common JavaScript Leaks
  10. 25:15Summary
~/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.