JavaScript's Most Wanted
summary
A live demo shows six concrete production failures and how to find and fix them: scripty joe is browser obfuscation from cross‑origin scripts — fix by adding CORS headers and the crossorigin attribute; a third‑party typo (getRandomAds) breaks pages unpredictably; clara context is lost this in callbacks — fix with var self=this or Function.prototype.bind/_.bind; a server sends numbers not strings (2000 errors from one user) so validate and log; intermittent script load failures (134 hits, 129 users) require feature checks; a memory leak from detached DOM listeners crashes browsers — use Chrome DevTools timeline, async stacks and TrackJS to diagnose.
AI-written summary · about
chapters (5)
- 0:00Start
- 0:07JavaScript's MOST WANTED
- 5:51WANTED Scripty Joe Characteristics: Script Error
- 29:58Clara "This&That" Context Place of Origin: Functional Args Characteristics: Not Defined
- 31:22WANTED Dolly Data Characteristics: Substr is not a
related talks
26mScripting in the 3rd Party True Tales of Horror and Hope
40mHostile JavaScript: Attacking and Defending the Browser
58mSquashing JavaScript bugs
23mJavaScript attack surface
01h 08mSquashing JavaScript Bugs
32mWriting Secure JavaScript Code
36mHTML5 JS Security
32mJavaScript is weird. MythBusters special
