Please help me understand how to add javascript in the AMP (Accelerated Mobile Pages). My requirement is I get an ID in URL. For example localhost:8080/home?id=1.I would like to access that id in my html file.  or else please let me know how to add a...
We have gone through from all possible blogs of AMP but couldn't find any way to include custom JS in AMP. This blog(https://www.ampproject.org/docs/guides/pwa-amp/amp-as-pwa#extend-your-amp-pages-via-service-worker) indicates that we can add Cus...
I have tried adding external js file in AMP page but AMP validator rejects it. Is there any workaround for it?...
So far I haven't found a solid way to create a sticky header on AMP pages. I know there are css workaround/hacks, but nothing I can use in a production environment. A simple "position:fixed;" unfortunately won't work in my case.   Out...
I'm trying to follow the AMP guidelines suggested by Google (ampproject.org) but as soon as I add their js script, the jQuery scroll stops working  Does anybody knows why and how to fix it?...
I am implemented AMP pages. So I am calling https://cdn.ampproject.org/v0.js api from cdn. But I want to save this file in my project. Because third party API making slow website. I have tested my website in googlepagespeed  1: https://developers.goo...
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 are built using React components that are in the end...
I would like to a service worker to cache files coming from my cdn? If files are under my root domain, everything is ok else I get always errors like "cross origin domain...".   All my static resources are on a cdn, how should I handle cachin...
I'm currently working on a task to customise "Add to home screen". Our website is AMP and I'm using worker service and manifest = PWA.  I already added the AMP library and this is how I install the worker service.  AMP part.   <amp...
I have a page that uses amp-list to dynamically list products using a JSON file. I have my directory structure as follows: *root*/amp/product-name/ and then within the product-name directory I have an index.html with the AMP HTML and a products.json...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.