~/talk

Browser Internals for JS Devs

Talkat Web Unleashed 2016 · 2016-10-03..10-04· [web-platform, javascript]
slides:none on file

Shows concrete things that change code: browsers run on two main threads so layout and heavy JS block rendering, CSS transforms run on the compositor so translate/scale animations stay smooth while changing height triggers repeated reflow and jank, v8 compiles functions on first call and uses Turbofan optimizations that break on try/catch, eval or changing object shapes, profiling with Chrome DevTools and node --prof finds leaks, aim for JS payload <500KB and under 5,000 DOM nodes for good mobile performance.

AI-written summary · about

  1. 0:00Intro
  2. 1:01A Browsers Job
  3. 4:47DOM Tree
  4. 5:46Render Tree
  5. 6:23WebCore Representations
  6. 6:50Parsing HTML is Hard
  7. 8:37Execution stops at Script Tags
  8. 10:51Paint Order
  9. 11:41Tokenization Example
  10. 14:18What causes Reflow?
  11. 21:58Best Practices for avoiding Reflow
  12. 22:56Animation Frames
  13. 25:08Profiling
  14. 28:22Memory Leaks
  15. 31:35node / command line
  16. 33:52Compilers
  17. 34:52Leaking or re-assigning arguments
  18. 35:54Safe arguments
  19. 36:06Isolate non optimizable code into small functions
  20. 36:23Hidden Classes
  21. 37:22Class Chain
  22. 39:18Monomorphic vs Polymorphic
  23. 40:03Optimize Mobile
~/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.