~/talk

Performance Patterns

Talkat JSConf.eu 2010 · 2010-09-25..09-26· [web-performance]
slides:none on file

Benchmarks need specifics: run ~200 rounds, filter outliers, prefer the median over mean, and remember setTimeout(0) ≈ 15ms in IE can mask tiny differences. Use profilers (Firebug, Chrome Speed Tracer, DynaTrace Ajax Edition) and jsperf for cross‑browser tests — jsperf.com is recommended. Load scripts asynchronously (defer/async or dynamic tags), chunk HTML to flush early (Google Instant example), minimize requests (data URIs, CDN), batch DOM writes and cache locals to avoid repeated expensive DOM crossings.

AI-written summary · about

  1. 0:00Intro
  2. 0:19About me
  3. 5:21Results
  4. 6:07Quarters
  5. 6:59Benchmarks
  6. 13:42JavaScript blocks
  7. 13:58JavaScript at the bottom
  8. 14:58defer and async timeline
  9. 15:37flush() early
  10. 16:09Progressive rendering
  11. 20:02Script injection patterns
  12. 21:02HTTP chunking: not only HTML
  13. 24:56Preload sans execute
  14. 26:07Speeding Up
  15. 26:41Local variables
  16. 27:30Localization
  17. 28:24Init-time branching
  18. 32:23Regex loops
  19. 32:57Cashing lengths in loops
  20. 34:39How bad is A compared to B?
  21. 36:29Proxy pattern
~/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.