~/talk

When to Use Web Components

Explains practical criteria for using Web Components: using the <template> element to reduce parsing cost (benchmarks claiming ~66% and ~2x improvements), using Shadow DOM to truly isolate styles (with video/input demos showing unexpected shadow internals), and using Custom Elements plus lifecycle hooks like connectedCallback to make mounting deterministic. Walks through an image component that clones a template and updates on attribute changes, and pinpoints where browser-native standards outperform libraries and where small libraries remain useful, with concrete demos and numbers.

AI-written summary · about

  1. 0:00Intro
  2. 1:003 accepted standards
  3. 3:48Performance problems
  4. 8:36Native elements have encapsulation
  5. 10:44User-exposed Shadow DOM
  6. 11:56Other implementation benefits
  7. 15:51Component model
  8. 19:30Browser standards
  9. 20:58When to use Custom Elements
  10. 26:04Straightforward translation
  11. 27:25We talked about
~/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.