Document placeholder more prominently on elements like amp-embed
As fast as AMP pages are, some content may take a long time to appear. Specifically, images and embeds. (Especially embeds!) It would improve user experience if there was a well-defined and customizable way to define a placeholder for embeds and images that would be shown until the actual asset loads.
Related: https://medium.com/ux-for-india/facilitating-better-interactions-using-skeleton-screens-a034a51120a5#.anadmfc82
Hey @ryanlombardo thanks for filing the issue. Have you checked out placeholder attribute?
This should be supported by most amp embeds and extensions. Some even build their own placeholder - see amp-youtube and amp-instagram
@mkhatib Thanks for the info! That looks like it should work. It would help others if a note was added to the amp-embed documentation at https://www.ampproject.org/docs/reference/amp-embed.html
@Meggin: Can you see if there's a better way to promote the placeholder attribute across our docs?
https://github.com/ampproject/amphtml/blob/master/spec/amp-html-layout.md#placeholder
I'm going to close this one. If you disagree, please reopen. The amp-ad reference docs include a section on "Placeholder". As well, any components that utilize common attributes references the "Common Attributes" doc, which has placeholder documented.