~/talk

Breaking up with the bundle

Talkat RailsConf 2022 · 2022-05-17..05-19· [css, frontend-architecture]
slides:none on file

GitHub has ~40,000 lines of custom CSS that block safe changes; measurement via a Datadog dashboard tracks lines added and hotspots. Tried splitting bundles per controller (cache and partials break reuse), hashing class names like CSS modules with per-component bundles via ViewComponent, and computing DOM style snapshots using the Chrome DevTools API wrapped by pherom to diff computed styles. Some experiments reduce regressions and ships nearly 50 open source components but overall debt grows and rewrite per page becomes the chosen path.

AI-written summary · about

  1. 0:00Start
  2. 9:01Bad design doesn't break CI
  3. 10:02Human Cost
  4. 10:58Pit of failure
  5. 11:29Measurement Bundle splitting CSS encapsulation Style diffing
  6. 21:15Critical CSS
  7. 24:37Visual Regressions
  8. 24:47CSS is hard to test
  9. 27:26Style Snapshots
~/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.