In case you get too carried away, however, there are several restrictions that AMP imposes on iframes to ensure that they don't interfere with performance:
- Must not be near the top of the page: No amp-iframe should be placed within the first 600 pixels, or first 75 percent of the viewport, whichever is smaller. If you do place an iframe within this distance from the top of the viewport, then the iframe won't be displayed. There is a way to circumvent this restriction: using placeholders.</li>
- Must be served from a separate domain: iframe content must be served from a different domain to the main AMP page. This is to ensure uniform behavior of AMP pages whether they're served from the AMP cache or from the original ...