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...
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 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...
Now that we have <amp-script> which allows custom, third-party JavaScript to run on AMP pages, I'm trying to determine whether I still have access to the same info I collect right now on non-AMP pages. E.g. user agent. I have the following...
I'm using amp-sidebar in my website and when I open/close it occasionally throws this error:  Uncaught TypeError: Cannot read property 'hiddenElementInfos' of undefined     at oa (modal.js:228)     at amp-sidebar.js:385     at mutate (res...
In amp-ad iframe context, I can not capture orientationchange or resize event.  // Don't work because `window` object in iframe context. window.addEventListener("resize", function() { console.info("resize") }); window.addEventList...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.