~/talk

#notalljavascript (How to deal with 3rd party JS)

Talkat JSConf Iceland 2016 · 2016-08-25..08-26· [web-performance, javascript]
slides:none on file

AMP shows concrete defenses: measure visibility with IntersectionObserver instead of expensive getBoundingClientRect polling, contain third‑party code in an iframe sandbox so it can be killed and sized safely, and throttle timers by monkey‑patching setTimeout/setInterval/requestAnimationFrame (adding ~1s when offscreen) to keep the page usable. Examples include pages with 65 Flash objects, ads spawning up to 21 movies, and a JS H.264 decoder that broke performance, and the mitigations demonstrably reduce jank.

AI-written summary · about

  1. 0:00Intro
  2. 0:48JavaScript is my favorite programming language.
  3. 1:21JavaScript is frickin awesome
  4. 2:27When your app starts, it makes an insecure HTTP request to my server and runs some arbitrary native code.
  5. 3:36Flash movies reduce their frame rate when off screen.
  6. 3:55I can use Flash to measure whether something is on screen.
  7. 7:37How does a browser parse a web page?
  8. 9:12Every JavaScript API will eventually be asynchronous.
  9. 11:42TECHNOLOGY LAB Native JavaScript H.264 decoder offers compelling demo of JS performance Mozilla has released "Broadway," a native JavaScript-based H.264 decoder that
  10. 12:04Chrome and Safari do not allow the tag to autoplay on mobile.
  11. 12:59Bandwidth still used -Battery devastated - Page janks - Only the bad players get to play video.
  12. 15:14Better security Control over resizing Ability to cleanly unload
~/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.