The basics principles of AMP iframe
You have the ability to show an iframe within your web page by operating the
amp-iframe
feature.
Iframes are especially handy in AMP to reveal content not provided in the primary web page context, like web content requesting user-authored JavaScript.
Demands for amp-iframe
- Need to be at least 600px or 75% of the 1st viewport away from the top ( other than iframes that utilize a
placeholder
).
- May only seek resources by HTTPS, and they should certainly not be inside the identical origin just as the container until they do not identify allow-same-origin.