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

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!

主站蜘蛛池模板: 迭部县| 香河县| 柳州市| 成都市| 武强县| 三亚市| 满城县| 遵义市| 墨江| 太仓市| 江川县| 巨鹿县| 龙南县| 安岳县| 佛学| 四平市| 漳浦县| 卢氏县| 潢川县| 胶南市| 巴南区| 娄底市| 晋中市| 东光县| 新巴尔虎右旗| 新晃| 子洲县| 荥经县| 黔江区| 呼伦贝尔市| 南平市| 宁晋县| 天水市| 青川县| 南靖县| 彰化市| 肇庆市| 临沧市| 文成县| 通渭县| 莱西市|