当前位置:网站首页>知识点滴 - 什么是加速移动网页(AMP)?
知识点滴 - 什么是加速移动网页(AMP)?
2022-06-21 10:18:00 【夜流冰】
Accelerated Mobile Pages(简称AMP,意为“加速移动页面”)是Google于2015年带领开发的开源项目,目的是为提升移动设备对网站的访问速度。AMP也可指其派生的标准和库等项目成果。AMP在HTML等广泛使用的网络技术基础上进行改良,它的核心称作AMP HTML,是HTML的一种。服务于技术预览期结束后的2016年2月正式发布。
补充背景资料:在 2015 年同时时 Facebook 先出了一个 instant article,是在 Facebook 里用的,用户看新闻的时候,一点就会以高速显示出新闻的基本数据,看完关闭仍停留在Facebook,好处是用户不用离开Facebook平台。还有个苹果新闻,也类似。
注意:Google 同样也想让用户停留在自己的搜寻器上,所以有此项目。三者都发布于2015年,旨在提供更快的移动内容。
AMP收到科技行业的广泛批评。一些人认为谷歌试图通过制定网站的构建和盈利方式来保持其在互联网的主导地位、将出版商锁定在其生态系统中。
AMP项目的支持者声称:APM是发布者和技术公司间的合作成果;AMP是为互联网,而不是专属应用程序设计的。
AMP大致可分为AMP HTML、AMP JS和AMP Cache三部分。
AMP HTML是描述网页所用的标记语言,相当于普通网页使用的HTML之亚种。AMP HTML在图像显示等方面使用与HTML不同的专用标签,另外还限制了HTML部分功能的使用。
AMP JS是一套JavaScript库,保证AMP HTML的正确和快速显示。除此之外,AMP JS还负责在只支持普通HTML的浏览器中担任桥梁,使其能正确支持AMP HTML的专用功能。AMP HTML中可以调用该函数库。
AMP Cache是缓存并传输AMP页面的CDN,进一步提高AMP网页的性能。用户在搜索引擎中点击AMP网页时,实际上访问的是优化后的缓存页面。Google
的AMP Cache名为Google AMP Cache。
使用 AMP 的好处有三方面:
#1 对 Google 有好处
因为用户会停留在搜寻器上,如此增加用户的使用体验能够快速找到自己想看的信息与内容
#2 对自己网站的排名
因为 Google 鼓励用户使用 AMP,所以会提供 SEO 的好处,让你的网站在某些关键词中拿到较好排名
#3 对用户来说
而对现今讲求快捷的用户,AMP 的快速加载和显示信息内容也可以满足用户需要快节奏的需求
使用AMP的网页可快速读取并显示,访问者在点击链接后无需等待即可看到页面内容。根据Google发布的数据,网页若是访问速度过慢,多数用户会放弃并关闭网页,快速加载的页面对网站制作者也有利。
在Google搜索结果中,妥善创建的AMP网页旁会出现AMP标志,新闻等部分内容还会采用轮播(carousel)的特殊样式。
部分媒体已开始使用AMP,包括CNN、美国广播公司和福克斯新闻。安装第三方插件后,WordPress博客也可使用AMP。
2017年3月7日,Google宣布百度、搜狗和Yahoo! JAPAN搜索将支持AMP;其中百度在搜索结果中将AMP页面标注为“MIP”(移动网页加速器),一个百度主导、与AMP类似的项目。
参考:
边栏推荐
- Several ways to trigger link jump
- New programmers optimize a line of code on Monday and are discouraged on Wednesday?
- 香农的信息论究竟牛在哪里?
- Introduction and template of segment tree Foundation (I)
- Equals and hashcode
- TC software outline design document (mobile group control)
- 108. detailed use of Redux (case)
- Stm32mp1 cortex M4 development part 10: expansion board nixie tube control
- Where is the cow in Shannon's information theory?
- Advanced part of concurrent programming: parallel flow, tasks and executors, and completabilefuture classes
猜你喜欢

聊聊大火的多模态项目
![[actual combat] STM32 FreeRTOS porting series Tutorial 4: FreeRTOS software timer](/img/16/ad38288689f629106a19a0b8defea2.jpg)
[actual combat] STM32 FreeRTOS porting series Tutorial 4: FreeRTOS software timer

燎原之势 阿里云数据库“百城聚力”助中小企业数智化转型

字符串

WCF RestFul+JWT身份验证

TensorFlow,危!抛弃者正是谷歌自己

ES复合查询工作量评估

Stm32mp1 cortex M4 development part 10: expansion board nixie tube control

东方甄选双语直播火爆出圈,新东方转型初见端倪

About Alipay - my savings plan - interest rate calculation instructions
随机推荐
cvte一面
如何选择嵌入式练手项目、嵌入式开源项目大全
JWT与Session的比较
【云驻共创】企业数字化加速“新智造”
Get the data in the configuration file properties
如何做一个有趣的人
Simple Android weather app (III) -- city management and database operation
Positive results of enx-101 clinical 1b study published by English topics
Xidian AI ranked higher than Qingbei in terms of AI major, and Nantah ranked first in China in terms of Software Science in 2022
Talk about the multimodal project of fire
TC software detailed design document (mobile group control)
Clipboard learning records and pit encountered
音视频格式简介、编解码、音视频同步
Eureka's timedsupersortask class (periodic task with automatic interval adjustment)
Judge the data type of JS
Cvte side
Embedded remote post, part-time job, order receiving, crowdsourcing platform
Advanced part of concurrent programming: parallel flow, tasks and executors, and completabilefuture classes
On the problem of class member variable pollution in the context of one-time concurrence
金融机构抢滩“数字员工”;保险APP适老化服务评测框架发布