I read all documentation about script tag but I cannot find how to include a custom JavaScript in AMP HTML.
I know the <script>
tag is prohibited unless its type is application/ld+json
.
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.
Here is the script tag I want to include in AMP HTML;
<script src="https://arifkarim.com/widget/layouts/global/js/legaltext.js"></script>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…