~/talk

Reactive Responsive Design

Talkat UtahJS Conf 2018 · on Friday, 2018-09-14· [web-platform, css]
links:none on file
slides:none on file

Proposes replacing scattered CSS media queries with JavaScript-driven breakpoints using window.matchMedia wrapped in observables, implemented as the rxrs library and a centralized window-size service. Demonstrates a survey-editor prototype that combines sidebar state and viewport observables to decide layout, prevent unused components from mounting (only load when needed), and reduce asset requests on mobile. Claims easier maintenance, uniform breakpoints across a team, straightforward RxJS marble testing for layouts, and no observed performance regressions.

AI-written summary · about

  1. 0:00Introduction
  2. 0:46State of responsive design
  3. 3:37Problems with media queries
  4. 7:31Using matchMedia and observables
  5. 10:20Introducing rxRS library
  6. 12:07Practical usage examples
  7. 14:31Codifying app breakpoints
  8. 14:59Handling complex layouts
  9. 18:10Reactive responsive demo
  10. 20:43Loading components conditionally
  11. 22:07Testing layouts with observables
  12. 23:19Summary and pitch
~/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.