In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article is to share with you about the usefulness of AMP. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
What is AMP?
AMP (accelerated Mobile pages) is an open source framework developed by Google and Twitter. It provides a direct way to create lightweight web pages that users can use immediately, with a greatly improved experience: faster, more attractive, and easier to read.
In essence, the AMP framework allows us to build lightweight experiences for mobile devices by simplifying HTML and simplified CSS rules.
Three core components of the AMP page
AMP HTML:
A more compact version of HTML than regular HTML, with strict specifications for HTML tags that can be used. To ensure that pages load quickly, certain HTML elements, such as forms, are not allowed on AMP; some default tags are replaced by AMP tags, for example, in AMP HTML code, tags
< amp-img >Replace
< img >For image integration.
Note: AMP has restrictions on CSS and can only use a simplified version of CSS.
AMP JS:
To ensure fast page loading on mobile platforms, AMP restricts the use of any Javascript, with the only exception being AMP scripts. You need to use AMP's own JavaScript library to load all site elements, and all external resources are processed asynchronously, which means that the rendering process can be done without external influence.
AMP CDN: commonly referred to as AMP caching, a key component of the AMP platform is its proxy-based content distribution network (CDN), which provides accelerated page movement.
Advantages and disadvantages of AMP
Advantages:
The main results are as follows: 1. The loading speed of content is very fast, and the participation and conversion rate are improved with a good sense of mobile experience.
2. By moving the search results, you can highlight the content in AMP rotation.
Reduce the load on the server because AMP CDN caches and responds to most search results.
Disadvantages:
1. JavaScript is limited and cannot be created by users, so it may be difficult to code.
2. Without integrated plug-ins, some effects are difficult to achieve in the page.
3, simplified HTML,css has restrictions, can not be a good custom site style, mostly the default format of Google.
Thank you for reading! This is the end of this article on "what's the use of AMP?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.