Custom JavaScript can now be added to AMP pages, Google announced this week. The amp-script component can be used to enable user interactions, and to share code across AMP-enabled and non-AMP pages.
Site developers help Web surfers view real-time information by writing code that makes browsers such as Firefox refresh. For example, an auction website might refresh Web pages every few seconds to ...