In this episode of How to AMP, we show you how to add custom JavaScript to AMP pages using amp-script, without jeopardizing page performance, so that you can add in things like highly personalized UI widgets or complex, customized client-side logic.
Official How to AMP Glitch Link →
Worker DOM →
amp-script component documentation →
Use custom JavaScript in AMP pages guide →