October 2017
Intermediate to advanced
370 pages
8h 57m
English
The value of social media sharing buttons is questionable--recent research suggests that only 0.2 percent of visitors will use these buttons (moovweb.com/anyone-use-social-sharing-buttons-mobile)--but they are still popular with publishers nonetheless. Some implementations are are notoriously bad for increasing page weight. The AMP implementation is, like everything in AMP, implemented efficiently.
We can add sharing buttons to our product page with the amp-social-share component (/ch5/product-social.html).
Import the component with:
<script async custom-element="amp-social-share" src="https://cdn.ampproject.org/v0/amp-social-share-0.1.js"></script>
Once the script is imported, you can use one of the following ...
Read now
Unlock full access