amp-html Questions

5

Solved

I want to solve this problem in my first AMP project, This is the problem that I have: error.js:58: Origin of <amp-iframe> must not be equal to container This is my amp-iframe code in my...
Periotic asked 19/5, 2016 at 9:46

2

Recently i've heard about the Accelerated Mobile Pages project, and read some info about it. I wonder how to implement it for existing website that is built upon Ionic and Angular?
Algerian asked 23/2, 2016 at 16:10

4

Solved

Some results on Google Search comes with AMP (Accelerated Mobile Pages) icon on theirs links, at least when using a mobile, as soon you click on the link instead of loading the site, google s...
Invigilate asked 4/12, 2016 at 22:0

5

Solved

I'm having trouble with AMP and CSS in Next.js. In my head component I have: <Head> <style amp-custom>{` // CSS Here `}</style> </Head> In the HTML source it shows up ...
Loretaloretta asked 25/12, 2019 at 21:59

2

Solved

Recently I am developing a progressive web app with Accelerated Mobile Pages (AMP). I have to add anchor link with target="_blank" so that a user click on that link will be redirected to a new wind...
Pyrimidine asked 10/5, 2018 at 13:19

0

I know that GA 4 is still not supported and the development under ID #24621 goes not further. They say GA4 should do the AMP part. Universal Analytics will stopp at 1st July 2023 and I have a AMP o...
Neologism asked 24/3, 2022 at 6:31

3

Is there any way to configure my manifest.json to disable the browser popup asking to "install" the site? I'm using the following JavaScript code to prevent it: window.addEventListener('beforeinst...

2

I have a Node project running an Express server that, when queried a news article with /amp in the URL, returns the AMP version of that article. Due to the request of a client, these AMP articles a...
Rillings asked 29/5, 2018 at 13:44

5

We have an isomorphic react App with node. I want to convert some pages to AMP pages. I am confused! Shall we go for a separate AMP version of the app or shall we modify the current app according t...
Adduce asked 12/4, 2017 at 10:59

6

Solved

I need to create a function so that I can use that inside any page which is outside the WordPress regular page. I mean wp_head() will not be placed there. I need it for a purpose. The purpose is fo...
Copybook asked 28/12, 2016 at 11:49

1

Solved

As far i know there is no possiblity to store data in local-storage within AMP Page. What would be the best solution for user personalized settings identification? While using server-side solut...
Vizard asked 18/4, 2018 at 8:35

3

Solved

Are there some solution as how to hide an div container dynamically? this is my current implementation: <button class="button" on="tap:player.hide">hide me</button> <button class=...
Hawkinson asked 4/9, 2018 at 12:19

3

Solved

How can I resolve the error below; Failed to load resource: the server responded with a status of 500 (Internal Server Error) cdn.ampproject.org/v0.js:68 Response must contain the AMP-Access-Co...
Magnetoelectricity asked 17/9, 2017 at 14:2

7

Is there a way to install multiple events for tap? E.g. on tap close the sidebar and open a lightbox? Thanks.
Pia asked 26/10, 2016 at 9:37

6

Solved

I am a bit confused as to how JavaScript is suppposed to be run in an AMP page. I got as far as understanding that my JavaScript must be executed in an iframe. Such iframe has to be placed down i...
Phosgene asked 25/10, 2016 at 10:17

4

Solved

I didn't find a straight answer on that anywhere as it clearly says in the name (AMP) itself too, that it's used for a static mobile web pages. I found out that amp tag is used on desktop version l...
Nablus asked 20/8, 2016 at 17:16

2

I am using following code below which is not showing AMP app banner. Here is the example. <script async custom-element="amp-app-banner" src="https://cdn.ampproject.org/v0/amp-app-banner-0.1.js...
Mirthless asked 2/3, 2020 at 6:9

4

Solved

Is there a way to use an alternate CDN for including the main JavaScript file AMP needs? Can a different URL than https://cdn.ampproject.org/v0.js be used? Are there plans to open this up a bit mor...
Midship asked 3/9, 2016 at 23:52

1

I have added a new amp page for my existing page. Below is the markup added in my original page <link rel="canonical" href="https://staging.example.com/blazor"> <link rel="amphtml" hr...
Combustor asked 13/3, 2020 at 5:56

1

I am trying (and failing) to configure a Ruby on Rails app with ActionMailer to send an AMP email. Looking for any advice on how to further debug as right now I don't know what else to do! The sam...
Complexioned asked 7/2, 2020 at 1:25

3

I understand that there will be a version of a site with HTML designed for desktop devices and then the AMP pages. Is there anything I need to do so that the site serves AMP content to mobile devi...
Nattie asked 8/5, 2016 at 19:11

6

I read all documentation about script tag but I cannot find how to include a custom JavaScript in AMP HTML. I know the <script> tag is prohibited unless its type is application/ld+json. The...
Crissy asked 16/3, 2016 at 12:29

2

Solved

I've a website for years with a few forms to login etc. Recently I made it all Google's AMP proof, but the forms stopped working. I'm searching for days now, but I can't find the right answer. Fi...
Maurine asked 27/12, 2016 at 13:33

4

Solved

Quoted from here: https://www.ampproject.org/docs/get_started/about-amp.html AMP is a way to build web pages for static content that render fast. AMP in action consists of three different parts...
Sharecrop asked 11/1, 2016 at 11:30

1

The AMP documentation mentions using jQuery with the amp-script component: https://amp.dev/documentation/guides-and-tutorials/develop/custom-javascript/ However, I do not see any examples nor an e...
Hanna asked 6/9, 2019 at 21:13

© 2022 - 2024 — McMap. All rights reserved.