amp-html

Using amp script in non-amp page

≯℡__Kan透↙ 提交于 2019-12-02 07:24:41
There are side effects using script amp in standard html5 pages? My idea is to use amp-iframe to show some related content, also in web pages and not only in amp pages. I have tried some month ago. My idea was to use the https://cdn.ampproject.org/v0.js to load images async for performance. Same to use the flying carpet and the Carousel on my regular site. The result was the internal validator brings to much errors, the script breaks, you need the Boilerplate and so on. So the answer is you can't use the AMP script on a 'normal' HTML site. Or you take the script and modify it for you. But you

how can i use the CDN of Google's AMP Project in a production website like cloudflare?

不羁的心 提交于 2019-12-02 07:09:37
问题 In this thread i discovered how to test the CDN of Google AMP. But how can i use it in a production website? I imagine that is possibile to set it in some way like Cloudflare or other similar services, isn't it? Thanks. 回答1: You're still going to be serving the AMP content from your own infrastructure, even if Google then collect it and make it available via theirs. If you want to serve it yourself or from a CDN like Cloudflare then the Google CDN isn't involved - it doesn't seem to make much

how can i use the CDN of Google's AMP Project in a production website like cloudflare?

我们两清 提交于 2019-12-02 04:18:30
In this thread i discovered how to test the CDN of Google AMP. But how can i use it in a production website? I imagine that is possibile to set it in some way like Cloudflare or other similar services, isn't it? Thanks. You're still going to be serving the AMP content from your own infrastructure, even if Google then collect it and make it available via theirs. If you want to serve it yourself or from a CDN like Cloudflare then the Google CDN isn't involved - it doesn't seem to make much sense to chain one CDN to another or to rely on Google having your content in their cache for it to be

How can a page tell browsers that an AMP HTML version exists?

送分小仙女□ 提交于 2019-12-01 17:01:09
问题 I understand I will have two pages, the AMP one and the regular one. The AMP one has a canonical link to the regular one, but how does the regular one specify that there is a AMP version available? 回答1: The AMP document discovery documentation specifies that you need to add this tag in the <head> : <link rel="amphtml" href="..."> As an example, if you take a look at a page from a publisher that already supports AMP, such as http://www.bbc.co.uk/news/world-europe-34471849, you can see this tag

How to add modal in AMP page?

泄露秘密 提交于 2019-12-01 08:43:41
How can we add modal boxes in amp pages since we cannot call external css or bootstrap scripts? i have tried using bootstrap in amp pages but amp validators fails it since we cannot call external css scripts in amp pages! <!doctype html> <html ⚡> <head> <meta charset="utf-8"> <title>Font example</title> <script async custom-element="amp-lightbox" src="https://cdn.ampproject.org/v0/amp-lightbox-0.1.js"></script> <link rel="canonical" href="notification.html" > <meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"> <style amp-boilerplate>body{-webkit-animation:-amp

Using /update-cache requests to update AMP pages

守給你的承諾、 提交于 2019-12-01 08:42:05
Trying to use /update-cache/ requests to update some AMP pages, but i'm getting 403 errors. Removed the opening part/protocol from the urls since i don't have the reputation to post this many links, but everything is https. I have a page at: www.qponverzum.hu/ajanlat/budapest-elozd-meg-a-hajhullast-mikrokameras-hajdiagnosztika-hajhagyma-es-fejborvizsgalattal-tanacsadas-5000-ft-helyett-2500-ft-ert-biohajklinika-szepsegapolas-egeszseg/amp From the AMP cache: www-qponverzum-hu.cdn.ampproject.org/c/s/www.qponverzum.hu/ajanlat/budapest-elozd-meg-a-hajhullast-mikrokameras-hajdiagnosztika-hajhagyma

AMP error: Missing supported structured data element

試著忘記壹切 提交于 2019-12-01 07:38:08
I have an aggregator site for books. I created dedicated AMP (Accelerated Mobile Page) for each book. Example AMP URL: http://konyvar.hu/amp/nicholas-sparks/az-utolso-dal Example canonical URL: http://konyvar.hu/nicholas-sparks/az-utolso-dal In Google Webmaster Tools, I see the following error for this page: Missing supported structured data element Google offers me to Open Test Tool , but it says: All good Please help me, I have no idea, what I'm doing wrong. Am looking at http://konyvar.hu/amp/nicholas-sparks/az-utolso-dal . I think you'll need to declare the AMP page as a NewsArticle or

How to add modal in AMP page?

不羁岁月 提交于 2019-12-01 07:20:00
问题 How can we add modal boxes in amp pages since we cannot call external css or bootstrap scripts? i have tried using bootstrap in amp pages but amp validators fails it since we cannot call external css scripts in amp pages! 回答1: <!doctype html> <html ⚡> <head> <meta charset="utf-8"> <title>Font example</title> <script async custom-element="amp-lightbox" src="https://cdn.ampproject.org/v0/amp-lightbox-0.1.js"></script> <link rel="canonical" href="notification.html" > <meta name="viewport"

AMP error: Missing supported structured data element

一笑奈何 提交于 2019-12-01 04:12:55
问题 I have an aggregator site for books. I created dedicated AMP (Accelerated Mobile Page) for each book. Example AMP URL: http://konyvar.hu/amp/nicholas-sparks/az-utolso-dal Example canonical URL: http://konyvar.hu/nicholas-sparks/az-utolso-dal In Google Webmaster Tools, I see the following error for this page: Missing supported structured data element Google offers me to Open Test Tool, but it says: All good Please help me, I have no idea, what I'm doing wrong. 回答1: Am looking at http://konyvar

Can I use AMP (Accelerated Mobile Pages) components/tags on a page that is not a valid AMP page?

回眸只為那壹抹淺笑 提交于 2019-12-01 01:56:58
Can I use AMP (Accelerated Mobile Pages) components/tags on a page that is not a valid AMP page? Will I have advantages or disadvantages with this? Is it a good practice or not? I would like to use the AMP components/tags by the way it load the elements (like amp-carousel and amp-img), but I can not fully convert my website to AMP since I have custom javascript codes that AMP page dont allow that I use (that do not apply using amp-iframe). Is it better for me to keep standard elements and other libraries, or is it valid for me to use AMP components even though the page is not a valid AMP page?