Chaperones and curfews: minimising 3rd party impact
summary
Third-party JavaScript dominates page cost: e‑commerce sites grow from ~15 to 85 third parties, third‑party JS increases eightfold and runs about 225 ms average per third party, which multiplies into many seconds of main‑thread blocking. Practical fixes shown include using RequestMap and Chrome Coverage to find 860 KB unused JS, switching reviews to on‑click (saving 8 s of CPU), racing requests with a service worker to time out slow tags, proxying Optimizely/Fonts via CDN (shaving ~1.7 s), and timeboxing ads with a 3 s body fallback.
AI-written summary · about
chapters (14)
- 0:00Introduction and speaker intro
- 1:25What are third parties
- 2:46Why third parties are problematic
- 10:55Why use third parties
- 13:03Identifying third-party impact
- 14:50Optimizing script loading
- 21:13Reducing third-party size
- 22:59Loading strategies and curfews
- 28:38Proxying third-party resources
- 31:28Resource hints for third parties
- 34:19Cultural and governance changes
- 36:06Protecting your site from third parties
- 40:26Leveraging vendor relationships
- 41:53Summary and Q&A
