官术网_书友最值得收藏!

Including the AMP-JS library

The very first step in converting any page to AMP will be to include the AMP-JS library in the page. This is an important first step since the AMP library includes development tools that will guide us as we build our AMP pages.

To include the AMP-JS library, simply add the following line within the <head> tag of your markup:

<script async src="https://cdn.ampproject.org/v0.js"></script>

If you open your developer tools console in any modern browser, you should see a line of AMP-specific output:

Powered by AMP HTML

This means the AMP-JS library has loaded and our journey to ride the AMP lightning has truly begun!

主站蜘蛛池模板: 梧州市| 密山市| 祁阳县| 安丘市| 苏尼特左旗| 廊坊市| 息烽县| 阳新县| 绿春县| 隆尧县| 雷波县| 镶黄旗| 横峰县| 黄平县| 平顺县| 佳木斯市| 潼关县| 阿尔山市| 定陶县| 昂仁县| 连山| 青田县| 佛山市| 上犹县| 衡南县| 渭源县| 托里县| 辛集市| 新绛县| 偃师市| 芦溪县| 武强县| 安西县| 鹿邑县| 谷城县| 临猗县| 达孜县| 荔浦县| 兴业县| 府谷县| 衡南县|