October 2017
Intermediate to advanced
370 pages
8h 57m
English
Now we're ready to add the amp-iframe element into the AMP page. Apart from the usual boilerplate, we can add the Disqus comments by adding the amp-iframe and setting the src URL to point to the Disqus content page we just built:
<amp-iframe src="https://alt.theampbook.com/ch9/disqus.html" width="200" height="600" layout="responsive" resizable>
Again we have the resizable attribute, and we set an initial height of 600 px. You can see the full code for this example at /ch9/iframe-disqus.html and /ch9/disqus.html.

Read now
Unlock full access