~/talk

Lean Mean CSS Machine

Talkat ffconf 2014 · on Friday, 2014-11-07· [web-performance, css]
slides:none on file

GitHub compiles Sass into two CSS files (split for IE9’s ~4,000‑selector limit) and uses octicons to cut image requests. A specificity checker by Josh Peek and regex CI tests detect unused classes and enforce max nesting; an experimental test flags unnecessary nested-only classes. Total selectors sit around ~7,600 (Twitter ~9,000, SoundCloud ~1,000); over two months refactoring removes ~600 selectors and trims the shipped CSS by ~10KB — the tooling catches regressions and the reductions stick.

AI-written summary · about

  1. 0:00Intro
  2. 1:15Mean Lean CSS Machine
  3. 1:32Short introduction
  4. 2:56GitHub's setup
  5. 5:09When does one selector override another?
  6. 6:51Don't use !important
  7. 7:13Avoid adjoining classes
  8. 7:52Prefer direct descendant selectors
  9. 9:17Easier to test
  10. 9:27Look out for complicated selectors
  11. 10:26Use shorthands when available
  12. 10:53Don't use shorthands if they set values you don't need to set
  13. 11:27Animate only on the GPŮ
  14. 11:41Remove redundant properties
  15. 12:08Divide classnames with single dashes
  16. 12:313. Testing & linting
  17. 12:53Configurable tool for writing clean and consistent SCSS
  18. 16:40Refactoring CSS is an opporunity to refactor design
  19. 17:05Add features!
  20. 17:46We use shadows
  21. 17:57Don't confuse lack of visual complexity with easy to use
  22. 23:09When to refactor?
~/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.