~/talk

Stop using JS for that: moving features from JS to CSS & HTML

Talkat Conf42 JavaScript 2023 · on Thursday, 2023-11-16· [web-platform, css]
slides:none on file

Shows concrete replacements for common JS widgets: a toggle built from a checkbox with appearance: none + :checked + :focus-visible, a datalist autosuggest and input[type=color] using native pickers, smooth fragment scrolling with scroll-behavior plus prefers-reduced-motion and scroll-margin, scroll-snap carousels, details/summary accordions and a dialog that mostly works but needs a tiny showModal call, and responsive container queries with cqw units. Covers upcoming features like :has() and selectlist/masonry and demos that run natively in modern browsers.

AI-written summary · about

  1. 0:00intro
  2. 0:22preamble
  3. 1:01i love...
  4. 1:17the rule of least power
  5. 2:19browser makers are listening
  6. 2:34once you learn something
  7. 3:28lets get started
  8. 3:45custom toggles
  9. 10:01datalist
  10. 13:19in-page transitions
  11. 13:43jquery. awesome.
  12. 14:59in javascript
  13. 15:30accessibility
  14. 16:20smooth
  15. 18:19carousels
  16. 20:19video by adam argyle
  17. 20:36accordions and modals
  18. 23:18dialog
  19. 27:18container queries
  20. 29:10stop using js... in the future
  21. 29:34masonry layout
  22. 32:18the parent selection :has()
  23. 34:27scroll driven animations
  24. 35:20no more js needed!
  25. 35:42i hope you love css and html now, too!
~/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.