amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

amp-iframe : Feedback about the 600px restriction

Open teleservizi opened this issue 11 years ago • 5 comments

from amp-iframe.md : "NOTE: We are currently looking for feedback as to how well this restriction works in practice."

My opinion is that until we have not customized the amp-ad and amp-video to properly work in our production environment, we should remove the 600px-from-top restriction

teleservizi avatar Sep 23 '15 14:09 teleservizi

I've got an iframe-at-the-top case.

I'm exploring AMP for discourse, and people have put embedded Google Forms links in the first post (if someone puts a link on its own line, we automatically embed it).

When this happens in the first post, of course, the iframe is shown in the first 600px of the page.

Here's an example page (heavy-js version) which would give the 600px error if shown as an AMP: https://forum.riking.org/t/example-topic-with-a-google-forms-signup/280

riking avatar Oct 09 '15 04:10 riking

@riking I think the component would help here. Start with a generic "here is a form" marker and then open it on click. I realize this isn't ideal, but with AMP prefetching you won't be able to prefetch the form, so having a good placeholder is crucial.

cramforce avatar Oct 09 '15 19:10 cramforce

relevant -> https://github.com/ampproject/amphtml/issues/571

erwinmombay avatar Oct 09 '15 21:10 erwinmombay

Click-to-play looks good. Would classify each iframe embed as "lightweight" or "heavyweight" and put heavy ones behind a CTP, and light ones in the first displayed post as well.

riking avatar Oct 10 '15 07:10 riking

#571 Is the related intent to implement. Will close this in favor of that bug.

cramforce avatar Oct 13 '15 03:10 cramforce