Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How will and when will Mobile browsers start serving AMP (Accelerated Mobile Pages) Content?

So Google announced Accelerated Mobile Pages (AMP) https://github.com/ampproject/amphtml

Wordpress released a plugin and other publishers released some support... but basically most publishers/websites will have an alternate set of URLs for AMP content.

I don't see it that many websites will switch their entire frontends to AMP anytime soon, so how does the mobile web take advantage of the new AMP content?

So when or how will mobile browsers decide to show this AMP content? If its in the HTML <head> section then the mobile browser will only know the location of the AMP content after it downloads that part. Will there be a spec for sending the AMP url in the HTTP header? Or is there another way?

like image 679
kzap Avatar asked Oct 08 '15 01:10

kzap


2 Answers

Websites shouldn't switch their entire frontends to AMP. AMP should be used to accelerate static, article-based content when requested by the client.

In order to inform clients that an AMP version of the content is available you can use a link tag in the document's head like:

<link rel="amphtml" href="http://www.bbc.co.uk/news/amp/34471849">
like image 187
edlea Avatar answered Oct 27 '22 01:10

edlea


When Google or another app indexes the page it becomes aware that there is an AMP version. The cached version of that AMP page will be served up when a user navigates to the page via a link or within a carousel of stories.

like image 1
Matthew Terenzio Avatar answered Oct 27 '22 01:10

Matthew Terenzio