~/talk

Building custom widgets with the closure library

Talkat JSConf US 2011 · 2011-05-02..05-03· [web-platform, component-design]
links:none on file
slides:none on file

Claim: the Closure Library framework makes custom widgets quick to write and safe to tear down. It uses goog.ui.Component lifecycle methods (createDom enterDocument exitDocument dispose), Closure tools (compiler templates) plus a Timer and event handlers; the demo builds a working countdown widget that ticks every second (interval = 1s starts at ~27s) and reports milliseconds on mouseover. Gotcha: live goog.require script tag injection makes many requests and unminified code; bundling or Closure Compiler (simple or advanced) fixes performance.

AI-written summary · about

  1. 0:00Intro
  2. 2:22Closure tools
  3. 2:52Cloudkick
  4. 3:10Custom widgets
  5. 5:11Widget Lifecycle
  6. 7:15Idea
  7. 7:39Class system
  8. 8:21Warning
  9. 9:07The stub
  10. 13:45Opening the demo
  11. 14:50Testing the widget
  12. 16:45A better way
  13. 17:06Deployment
  14. 18:30Questions
~/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.