Best way to include custom JavaScript in AMP
<p>I read all documentation about script tag but I cannot find how to include a custom JavaScript in AMP HTML.</p>

<p>I know the <code>&lt;script&gt;</code> tag is prohibited unless its type is <code>application/ld+json</code>.</p>

<p>There are default AMP HTML runtime components and extended components which contain specific form for different components, but I could not find a specific one for custom JavaScript.</p>

<p>Here is the script tag I want to include in AMP HTML;</p>

<pre><code>&lt;script src="https://arifkarim.com/widget/layouts/global/js/legaltext.js"&gt;&lt;/script&gt;
</code></pre>