The iframe that fits its content, talks to the page and never fails silently. One tag, <mat-frame>, zero dependencies.
Add rows inside the frame: no scrollbars, no fixed height.
A blocked iframe is just a blank box. MatFrame waits for the content to say hello (handshake) and, if it never does, shows a message with “Retry” and “Open in new tab”.
With lazy the content starts when the frame scrolls into view, with an animated skeleton instead of a blank box. The state is readable from CSS: mat-frame[state=ready].
| Feature | <iframe> | <mat-frame> |
|---|
In production, set origin="https://child-site.com" on the parent and parentOrigin in the child: messages from other origins are ignored.