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

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!

主站蜘蛛池模板: 涿鹿县| 永安市| 威信县| 利辛县| 文山县| 共和县| 信丰县| 夏津县| 阆中市| 普安县| 祁连县| 高台县| 河津市| 左贡县| 淳化县| 乌兰县| 页游| 长海县| 赞皇县| 伊宁县| 会宁县| 融水| 桂平市| 广水市| 左权县| 班玛县| 蕲春县| 运城市| 阿巴嘎旗| 屯门区| 老河口市| 望城县| 卓资县| 广安市| 鲁山县| 太仆寺旗| 云南省| 剑阁县| 江阴市| 文化| 楚雄市|