~/talk

A JavaScript Web App Deconstructed

Talkat JSConf.Asia 2013 · 2013-11-28..11-29· [javascript, frontend-architecture]
slides:none on file

Monocle.io is an open‑source CoffeeScript + Ruby link site served from GitHub and built on Sinatra + Sprockets with CommonJS modules; the app boots via a preloaded setup.js and scopes CSS per controller. It implements keyboard navigation with focus tracking, a jQuery removed event to reliably release controllers, pagination that posts previously seen IDs to avoid duplicates, and realtime updates via server‑sent events pubsub. Practical gotchas include beforeunload guarded by jQuery.active and wake detection by timer drift.

AI-written summary · about

  1. 0:00Introduction
  2. 1:13What is Monocle
  3. 1:47Download Monocle
  4. 2:13Sinatra
  5. 2:47Sinatra middleware
  6. 5:44Steps
  7. 6:04Frontend
  8. 7:11CommonJS Modules
  9. 9:26Controllers
  10. 15:38CSS
  11. 18:56Post
  12. 19:59Scroll into view
  13. 20:30Updown keyboard navigation
  14. 22:12Scrolling conflict
  15. 24:25Dynamic pagination
  16. 25:02Expired pagination
  17. 26:56Serverside events
  18. 28:51Streaming
  19. 32:16Unload
  20. 34:09Wake
~/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.