Questions tagged [google-amp]

The AMP Project is an open-source initiative aiming to make the web better for all. The project enables the creation of websites and ads that are consistently fast, beautiful and high-performing across devices and distribution platforms.

101 questions
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

Does Google amp update our cache whenever we visit our amp site?

I have created my own Wordpress plugin for Google update cache. However I'm not sure is my plugin work or not... whenever I update it, it doesn't change for a while. Sometimes it take less than 5 minutes to change, and sometimes it takes more than…
0
votes
1 answer

Submit Form after value update in Google AMP

Here i have sorting select box and i performed 2 events on change of select box, first set state of hidden value and second submit form. I need to submit form with updated hidden value of sorting but, everytime i changed select box form can be…
GuRu
  • 1,880
  • 3
  • 23
  • 32
0
votes
1 answer

How Can I Provide Dynamic Structure To AMP

I did publish a static structure AMP page, but I want to implement "Hotel Search" web page with AMP.How can i provide this dynamic structure with AMP ?
0
votes
1 answer

Implement AMP using ReactJS

Where to write server side network calls for fetching data and what all lifecycle methods of ReactJs are used? Note: As in ReactJS, files are made using .js extension and needs many ReactJS imports (like import React, {Component, PropTypes} from…
0
votes
1 answer

How to serve data for making static amp pages sharing same design?

For my understanding, using amplist, ampcarousel, ampimg needs an src which is always hard coded (depending upon product's detail page URL) For Eg. - https://www.example.com/amp/details/Samsung-smartphone-s5 -…
0
votes
1 answer

Syntax error: value, object or array expected

I have a problem with my amp pages and Google not indexing them. Below is a picture of the error.
0
votes
1 answer

The extension 'amp-bind' was found on this page, but is unused. Please remove this extension."

I have a very simple AMP page that uses amp-bind. However, the validator always shows this message: The extension 'amp-bind' was found on this page, but is unused. Please remove this extension." My page does use amp-bind. The code for the page…
rodders
  • 354
  • 1
  • 11
0
votes
1 answer

AMP injecting undesired styles `style="top: calc(0px);` when using

I'm trying to have a social share bar appear under the masthead/nav. Right now it's being obscured because of an inline style I don't control. Here's what my wrapper div looks like on prod.
Ksenia
  • 536
  • 5
  • 14
0
votes
0 answers

Why the image is not responsive using AMP?

I'm including the following script in my index.html: After, in my body i have image tag with this strucure:
Rumen Panchev
  • 468
  • 11
  • 26
0
votes
0 answers

amp-ad srcdoc or srcdoc equivalent

I would like to use amp-ad's in a preview environment. The constraint of the preview environment is that we are not allowed to serve ads via a request. A common use case for creative ad tech developers is to use iframes and their srcdoc attribute to…
M.Disch
  • 63
  • 2
  • 7
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
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
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
0
votes
0 answers

Grunt or Gulp pipeline for Ruby application and sass

I am taking on an existing ruby project it doesn't currently have any sort of asses pipeline (all styles are just hardcoded). I was hoping to use something like grunt of gulp. What I need to do is be able to compile sass from separate .scss files…
chinds
  • 1,761
  • 4
  • 28
  • 54