- AMP:Building Accelerated Mobile Pages
- Ruadhan O'Donoghue
- 104字
- 2021-07-08 10:03:59
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!
推薦閱讀
- 大學計算機應用基礎實踐教程
- Java Web基礎與實例教程(第2版·微課版)
- 青少年軟件編程基礎與實戰(圖形化編程三級)
- Magento 2 Theme Design(Second Edition)
- KnockoutJS Starter
- Windows Phone 7.5:Building Location-aware Applications
- JavaScript程序設計(第2版)
- 深入實踐Kotlin元編程
- Java并發編程之美
- 算法設計與分析:基于C++編程語言的描述
- Julia數據科學應用
- Angular Design Patterns
- Python Programming for Arduino
- Java高并發編程詳解:深入理解并發核心庫
- SCRATCH編程課:我的游戲我做主