~/talk

Run digest cycle in web worker

Talkat ng-conf 2015 · 2015-03-05..03-06· [angular, web-performance]
slides:none on file

Moves an Angular 1 digest cycle and model into a Web Worker so CPU‑heavy prime-number computation no longer blocks the page, keeping the UI responsive during repeated clicks. Client keeps mock scopes that call the worker via postMessage with stringified functions, losing lexical scope but preserving scope properties; worker runs a micro-Angular, reconciles model changes and returns generated HTML. Change detection on the client uses Object.observe to post updates; demo proves it works though it requires function serialization and newer APIs.

AI-written summary · about

  1. 0:00Start
  2. 2:25Web worker micro angular
  3. 2:37Client-side mock scopes
  4. 3:24Restore POJO
~/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.