> Except that, hilariously, to create an AMP page you have to load a, wait for it, yes a JavaScript file from Google.
What does the Javascript file do? Is there an open-source equivalent? If it transmits data to Google, could you instead collect the data server-side and send anonymized data with a cron job once-a-day to Google's endpoint to reduce the slowdown and privacy issues?
It looks like AMP bans all Javascript except for the one Google-provided Javascript file, which provides common UI components:
https://www.ampproject.org/docs/reference/spec
"While it does allow styling the document using custom CSS, it does not allow author written JavaScript beyond what is provided through the custom elements to reach its performance goals."
Unless Google's library includes everything, even a simple 'Delete' button requires Javascript if you want to use the right HTTP verb. I'd worry about using anything that leads me into a corner like that.