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
2
votes
1 answer

How to implement AMP-Consent Component flow on AMP Page?

The newly introduced AMP-Consent Component has some really nice features, which i would adapt in order to comply with the new cookie - policy. https://github.com/ampproject/amphtml/issues/13716 My question is: how to implement an endpoint and how…
Christian Felix
  • 644
  • 1
  • 9
  • 28
2
votes
1 answer

Is there any benefit of using Accelerated Mobile Pages (AMP) with Angular 4/5 application?

Can anyone help me to understand if there is any benefit of using AMP with Angular 4/5? If it is beneficious, then how to integrate AMP with Angular 4/5 so that in AoT build, the AMP components will be recognised?
Somnath Sinha
  • 662
  • 6
  • 16
2
votes
0 answers

Not able to see the comments on our dashboard

We have implemented Facebook comments in our AMP pages but not able to see the comments on our dashboard. Has anybod experienced such an issue? Is it something wrong with our AMP implementation or do Facebook comments have this issue on AMP…
Sandeep C
  • 291
  • 1
  • 2
  • 14
2
votes
0 answers

Will using canonical AMP make it faster even for desktop visitors?

If you convert your site or web property (app or whatever you want to call it) to go full AMP i.e. no longer keep a canonical version and a separate AMP version, is that site going to end up on Google's fast CDN as is the case when you AMP your…
Adergaard
  • 760
  • 10
  • 24
2
votes
2 answers

How can I format a number as money in AMP-html?

I have some arbitrary number, which in my use-case is between 1,000 and 1,000,000. I need to format this value into a display value, in which it's being displayed as money. I.e 1000 -> "$1,000", 100000 ->"$100,000", etc. The problem I'm having is…
2
votes
0 answers

Possible to resolve actual domain from d-00000000000.ampproject.net?

Regarding --- https://www.ampproject.org/learn/overview/ I have a C# app (not that it probably matters), attempts DNS and Reverse DNS lookups for traffic logging/analysis purposes. I've noticed that a lot of the mobile traffic points to a google…
Ted Krapf
  • 403
  • 3
  • 11
2
votes
0 answers

Is Google AMP supported in Thailand / for Thai language?

During a visit to Google Headquarter in Bangkok, we learned that Thailand was the only country not supporting AMP. (more specifically Thai language as English pages works just fine). As this meeting was last March, I was just wondering if it's still…
2
votes
1 answer

AMP Pages Multiple Analytics Solutions Implementation (Google Analytics and Adobe Analytics)

Is it possible to have Multiple Analytics Solutions such as Google Analytics and Adobe Analytics implemented on the Accelerated Mobile Pages (AMP Pages)? Accelerated Mobile Pages
2
votes
1 answer

AMP Form - Show same html after form submit with the some additional element's

I'm using AMP form and can't figure out how to show same html after form submit with the some additional element's. In general my markup is more complex, but here are simple example that illustrates what I need to do:
Ani
  • 96
  • 11
2
votes
0 answers

amp-mustache template, how can i use it without JSON source external file?

Can i just define some json inside my AMP (accelerated mobile pages) page and use it as amp-mustache source? Something like this: