AMP by Example
Playground

Introduction
Introduction

Components
Components

Advanced
Advanced

Samples & Templates
Samples & Templates

AMP Ads
AMP Ads

Edit in Playground

Long List of amp-instagram Embeds

Edit on Github

Introduction

A page with a long list of amp-instagram embeds to show how fast and responsive AMP pages are, this example contains 15 amp-instagram embeds.

Show Hidden Code Hide Code
<!doctype html>
<html ⚡>
<head>
  <meta charset="utf-8">
  <script async src="https://cdn.ampproject.org/v0.js"></script>

Setup

Import the amp-instagram component in the header

  <script async custom-element="amp-instagram" src="https://cdn.ampproject.org/v0/amp-instagram-0.1.js"></script>
Show Hidden Code Hide Code
  <link rel="canonical" href="https://ampbyexample.com/advanced/long_list_of_amp-instagram_embeds/">
  <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
  <style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
</head>
<body>

A long list

Instagram photos are embedded via the instagram data-shortcode. For a more detailed description of how to use amp-instagram look here.

 

  <amp-instagram data-shortcode="BAb2gbSRJaM" width="1" height="1" layout="responsive">
  </amp-instagram>

 

  <amp-instagram data-shortcode="BAsDvGlRJWz" width="1" height="1" layout="responsive">
  </amp-instagram>

 

  <amp-instagram data-shortcode="-12-BexJfg" width="412" height="309" layout="responsive">
  </amp-instagram>

 

  <amp-instagram data-shortcode="-12YGDRJeY" width="1" height="1" layout="responsive">
  </amp-instagram>

 

  <amp-instagram data-shortcode="-tvCY3RJW2" width="1" height="1" layout="responsive">
  </amp-instagram>

 

  <amp-instagram data-shortcode="9hVl1oxJZF" width="1" height="1" layout="responsive">
  </amp-instagram>

 

  <amp-instagram data-shortcode="8negn8RJV8" width="1" height="1" layout="responsive">
  </amp-instagram>

 

  <amp-instagram data-shortcode="8WiI-3RJVQ" width="1" height="1" layout="responsive">
  </amp-instagram>

 

  <amp-instagram data-shortcode="8Je_4rxJcr" width="1" height="1" layout="responsive">
  </amp-instagram>

 

  <amp-instagram data-shortcode="8Ie90WxJel" width="1" height="1" layout="responsive">
  </amp-instagram>

 

  <amp-instagram data-shortcode="77tppSRJQ6" width="1" height="1" layout="responsive">
  </amp-instagram>

 

  <amp-instagram data-shortcode="6DOROuRJQg" width="1" height="1" layout="responsive">
  </amp-instagram>

 

  <amp-instagram data-shortcode="54xvPPRJZj" width="1" height="1" layout="responsive">
  </amp-instagram>

 

  <amp-instagram data-shortcode="52j33uxJUI" width="1" height="1" layout="responsive">
  </amp-instagram>

 

  <amp-instagram data-shortcode="5o-G2wxJTY" width="1" height="1" layout="responsive">
  </amp-instagram>

 

  <amp-instagram data-shortcode="5o-TLoxJTv" width="1" height="1" layout="responsive">
  </amp-instagram>

 

  <amp-instagram data-shortcode="5X8T57RJQq" width="1" height="1" layout="responsive">
  </amp-instagram>

 

  <amp-instagram data-shortcode="5MtQeuxJTk" width="1" height="1" layout="responsive">
  </amp-instagram>

 

  <amp-instagram data-shortcode="BC8yp7AxJXj" width="675" height="505" layout="responsive">
  </amp-instagram>

Next up:

</body>
</html>