MIP_HTML是什么吗MIP_HTML详解_你知道吗?
MIP-HTML
MIP-HTML?基于 HTML 基础规范进行了扩展。
下面是一段简单的 MIP-HTML 代码示例:
123456789101112131415161718192021222324<!DOCTYPE html><html mip>
?<head>
? ?<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
? ?<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
? ?<link rel="stylesheet" type="text/css" href="https://c.mipcdn.com/static/v2/mip.css">
? ?<link rel="canonical" href="https://www.example.com/your/path.html">
? ?<!-- noscript 标签是为了在不支持 script 的环境下快速的展现 MIP 页面,推荐使用 -->
? ?<noscript>
? ? ?<style mip-officialrelease>
? ? ? ?body { ? ? ? ? ?-webkit-animation: none; ? ? ? ? ? ? -moz-animation: none; ? ? ? ? ? ? ?-ms-animation: none; ? ? ? ? ? ? ? ? ?animation: none;
? ? ? ?} ? ? ?</style>
? ?</noscript>
?</head>
?<body>
? ?<h1>Hello World!</h1>
? ?<script src="/uploads/allimg/201222/002350O04-0.jpg"></script>
?</body></html>
MIP-HTML 规范中有两类标签,一类是 HTML 常规标签,另一类是 MIP 标签。MIP 标签也被称作 MIP-HTML 组件,使用它们来替代 HTML 常规标签可以大幅提升页面性能。
例如:<mip-img>标签,它使得图片只在需要时才进行加载,减少了页面渲染时间,节省了用户的流量。
阅读本文的人还阅读了:
MIP是什么?怎样实现MIP?
MIP-Cache是什么?MIP-Cache详解
MIP-JS是什么?MIP-JS详解

2020-12-22 00:23:50