~/talk

A novel, efficient approach to JavaScript loading

Talkat JSConf EU 2012 · 2012-10-06..10-07· [javascript, frontend-architecture]
links:none on file
slides:none on file

Serves JavaScript by teaching the server the module graph so the client requests only what it needs when it needs it, cutting recursive waterfalls (example: 8 requests/4‑step → ~400 ms) down to a single concatenated response and negative loading deltas for incremental loads. Uses Closure Compiler for per‑module minification, implements callback loading to download in parallel and execute in order, rewrites globals into a synthetic namespace to avoid pollution (size cost ~3–4% gzips away), and ships an open source moduleserver that runs in production on Google+.

AI-written summary · about

  1. 0:00JavaScript loading challenges
  2. 1:18Dependency trees inefficiencies
  3. 3:42RequireJS and bundles limits
  4. 4:25Server-side dependency resolution
  5. 6:09Negative loading for incremental requests
  6. 7:54Callback loading for parallel execution
  7. 11:23Rescoping global symbols
  8. 13:31Cross-iframe code sharing
  9. 14:13Independent incremental requests
  10. 15:38Server implementation and graph
  11. 17:00Closure Compiler module support
  12. 18:47Protocol flexibility for modules
  13. 19:51Open source module server
  14. 21:14Enhancements and community
  15. 23:20Q&A on Closure and caching
~/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.