gatsby
In the modern JavaScript Web Development workflow it’s quite common to install JavaScript via npm packages.
在现代JavaScript Web开发工作流程中,通过npm软件包安装JavaScript是很常见的。
Sometimes however we must include an external JavaScript file, and modern tools might make this a little difficult.
但是有时我们必须包括一个外部JavaScript文件,而现代工具可能会使此操作有些困难。
In particular I had the need to include a video from Wistia in my site, and after a quick look everything looked quite more complicated than I wanted.
特别是,我需要在我的网站中包含来自Wistia的视频,快速浏览后,所有内容看起来都比我想要的复杂得多。
Wistia gave me this HTML snippet to embed:
Wistia给了我这个要嵌入HTML代码段:
<script src="https://fast.wistia.com/embed/medias/VIDEOURL.jsonp" async></script><script src="https://fast.wistia.com/assets/external/E-v1.js" asy