Embed Field Guide
Responsive iframes and honest browser boundaries
A practical one-page guide to the parts of third-party embeds that fail in production: intrinsic height, resize feedback loops, cross-frame messages, framing policy, and what “same-origin security” does—and does not—mean.
- A custom-element API over a vendor-origin iframe
- A responsive-height protocol that can grow and shrink
- Origin- and source-checked cross-frame messages
- Patterns informed by Cal.com, Typeform, and YouTube
- iframes
- postMessage
- ResizeObserver
- Content Security Policy



