~/talk

Aggregation with Sprockets

Talkat JSConf.eu 2009 · 2009-11-07..11-08· [frontend-architecture, javascript]
slides:none on file

Sprockets provides a Ruby asset pipeline that concatenate+precompile via Sprockets Rails or run as a CGI, emits one consolidated asset and ships rake tasks for Capistrano deployment; it pairs with YUI Compressor (JAR) with munch option for safe minification. An example project with ~60 JS files at three–four directory levels consolidates to one file, and a Prototype+script.aculo.us sample drops from ~300k to about 10% after YUI + gzip. Apache config recommendations include long expiry, public cache control, and dropping ETags for CDN friendliness.

AI-written summary · about

  1. 0:00Start
  2. 4:51or use Rails!
  3. 6:06Hey, like to squeeze?
  4. 6:38YUI Compressor
  5. 8:21The gem wrapper
  6. 9:41A match made in heaven
  7. 10:32So what's left?
  8. 12:06Apache config you'll love
  9. 14:07Numbers!
~/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.