Questions tagged [accelerated-mobile-page]

Similar Tags: [amp-html] and [google-amp] AMP HTML (Accelerated Mobile Pages HTML) is a project led by Google to make the mobile web faster. It is a set of HTML tags, a JavaScript library, and a cache for AMP-compliant pages.

The project homepage is at https://www.ampproject.org/, and the framework source code can be found at https://github.com/ampproject/amphtml.

AMP HTML is HTML with some restrictions for reliable performance and some extensions for building rich content beyond basic HTML. The AMP JS library ensures the fast rendering of AMP HTML pages.

An easy-to-follow tutorial can be found on the project's homepage.

Validating AMP pages

There are three ways to validate an AMP page:

  1. Add #development=1 to the URL, for example http://localhost:8000/released.amp.html#development=1, then check the browser console for validation errors.
  2. Paste the URL (or the page code) at https://validator.ampproject.org/
  3. Use the AMP Validator extension for Chrome.

You can also use the Structured Data Testing Tool to validate Schema.org markup.

134 questions
0
votes
0 answers

What would be the AMP Cache status if the backend throws 504

Let's say I have a valid AMP Cache document hosted at google's CDN. Based on my understanding, When a user fetches a cached document, google displays the cached version, goes and fetches the latest document from my server and updates the cache for…
0
votes
1 answer

Show contents from JSON called via AJAX in AMP

I'm trying to implement an AMP-Version of a site which is calling a 3rd-Party rest endpoint. The Endpoint provides JSON-Data and a part of that data should be shown on the Website. I already tried amp-list, which is no help for me because that…
mkoala
  • 893
  • 1
  • 7
  • 15
0
votes
1 answer

Error in creating C# AMP Page

I have created an AMP Page in C#. I am getting the following error in the development mode. The tag 'script' is disallowed except in specific forms. I have not given any external scripts for the page.Here is my .cshtml code. Please check it and say…
Shubashree Ravi
  • 261
  • 1
  • 16
0
votes
0 answers

Can't display hosted images in AMP site

I'm creating a basic AMP site, after the XMLHttpRequest that loads the product details I change the web content using javascript: document.getElementById("stock").innerHTML = result.ref This is the right approach for this new framework? But what…
rjcpereira
  • 943
  • 4
  • 17
0
votes
1 answer

Wordpress AMP pages not setting up throwing error 'Non-existent changeset UUID.'

I have setup the AMP plugin in WordPress but while going to see the AMP pages (Appearence->AMP), I saw an error "Non-existent changeset UUID". Also there is message in console says, "Failed to execute 'postMessage' on 'DOMWindow': The target origin…
Ajit Singh
  • 51
  • 5
0
votes
1 answer

amp-call-tracking + amp-img sometime not showing

I have set the amp-img on my mobile web to make the call as follow:

Joe Lam
  • 59
  • 1
  • 8
0
votes
2 answers

amp-access type server: when will this be available?

documentation says The "server" option is under design discussion and these docs will be updated when it is ready. Question: is there a timing known for this? Can it already be used? We want to use AMP for paywalled content. type="client" is not an…
0
votes
2 answers

link rel="amphtml" mandatory?

I understand that ideally one should add to the non amp page and to the amp…
Mr Nice
  • 227
  • 1
  • 4
  • 6
0
votes
0 answers

Accelerated Mobile Pages not able to display a form

I've been converting a site to Accelerated Mobile Pages and now I'm trying to implement a contact form. I've got amp-forms running on the page and I've placed the example code of an HTML AMP contact form from the AMP by Example site, but the form is…
AlanP
  • 447
  • 8
  • 18
0
votes
1 answer

...Show More on Accelerated Mobile Pages (AMP)

I am creating an amp for my webpage. It contains lot of description about places. I want to implement ..show more after 4 lines so that user can see other content also in the mobile first fold (Text is dynamic so can be less than 4 lines also. In…
0
votes
0 answers

Installing 2 Google Analytics trackers to amp pages

I need to install 2 Google Analytics counters to AMP pages. Can you tell me please if my code is correct?
0
votes
0 answers

How to white list google in amazon S3 policy for amp page

I have some AMP pages and those pages use amazon s3 pages use S3 images form a container in amazon S3 with a referer policy like that { "Version": "2012-10-17", "Statement": [ { "Sid": "PublicReadForGetBucketObjects", …
henri_1310
  • 315
  • 7
  • 21
0
votes
0 answers

Without base slug CPT is not working with AMP

I have created custom post type "services" and "quotation" but when i removed CPT base slug from url, amp pages are not working. For example (working if): mysite.com/cpt_base_slug/post_name For example (not working if): mysite.com/post_name Please…
0
votes
1 answer

How does the % count in the "final above-the-fold content" - Prioritize visible content

My website has a 3-column design. I am sticking on Prioritize visible content of google PageSpeed Test It said "None of the final above-the-fold content could be rendered even with the full HTML response." Sometime when I edit the code, the msg will…
0
votes
1 answer

Where to use cdnAmpURLs?

I have the start of an amp site and I am looking to take advantage of Google AMP Cache. I understand the instructions of generating cdnAmpURLs and I can see that I should use them to prefetch content such as fonts and images but what I don't…
K7Buoy
  • 936
  • 3
  • 13
  • 22
1 2 3
8
9