~/talk

Scaling Backbone.js

Talkat HTML5DevConf 2013 · 2013-04-01..04-03· [javascript, frontend-architecture]
links:none on file
slides:none on file

SoundCloud migrates its site to a Backbone single-page app (December 2012) with 30 million users, about 37,000 lines of code (80% JS), and a model surface of 33 models 48 collections 200 views. Stack includes Backbone, jQuery, Underscore, Handlebars, SoundManager2, RequireJS/Almond and Node for builds. Problems: boilerplate and brittle public API. Solutions: a strict base view class and modular views, swap to canvas-based comment rendering to collapse thousands of DOM nodes, create specific backend services and compressed waveform JSON to cut requests and parsing.

AI-written summary · about

  1. 0:00Introduction to tech stack
  2. 1:35Engineering pains & tools
  3. 6:35Managing view boilerplate
  4. 11:51Building modular views
  5. 17:25API strategy at scale
  6. 28:58Optimizing DOM performance
  7. 32:53Canvas for rendering
  8. 37:13UI illusions for speed
  9. 41:34Conclusions & Q&A
~/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.