~/talk

Polyfilling the gaps

Talkat JSConf EU 2011 · 2011-10-01..10-02· [web-platform, javascript]
slides:none on file

Polyfills follow three concrete steps: feature detection, implementation, distribution. Practical notes: a two‑line document.head shim breaks frames; localStorage access throws in Firefox 3.6; Object.watch exists only in Firefox; Opera once false‑positives pointer events. Clever reuse of browser features wins — Paul Irish’s matchMedia div trick checks a media query by injecting CSS and reading offsetWidth. Beware scope and size — a progress polyfill ballooned to 200 lines and still felt wrong.

AI-written summary · about

  1. 0:00Start
  2. 5:55Cone ideas
  3. 11:19HTML elements Optimistic thought
  4. 13:25Attribute values
  5. 29:24Adapting to change attributes
  6. 31:20mutation events
  7. 34:00Accessons
  8. 42:13Use built-in functionality
  9. 42:49matchMedia
  10. 47:43Accessibility
  11. 48:30CSS polyfills
  12. 52:40Help yourself
~/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.