手机网站优化,百度MIP网页加速
什么是MIP
MIP(Mobile Instant Page – 移动网页加速器),是一套应用于移动网页的开放性技术标准。通过提供MIP-HTML规范、MIP-JS运行环境以及MIP-Cache页面缓存系统,实现移动网页加速。- MIP HTML
- MIP JS
- MIP Cache
开发指南
按照下面的步骤,你可以快速创建一个基本的 MIP HTML 页面;通过进一步了解 MIP HTML 规范、对 MIP HTML 页面进行阶段性的验证等内容,你可以轻松开发出理想的 MIP 页面。 基本步骤包括:- 创建基础 MIP HTML 页面
- 引入图片
- 调整样式和布局
- 预览和验证
- 最后一步
技术规范
起始标签使用<!doctype html> html标签必须加上mip标记,即: <html mip> 必须包含<head>和 <body>标签 必须在head标签中包含字符集声明: <meta charset=”utf-8″>,字符集统一为utf-8 必须在head标签中包含viewport设置标签: <meta name=”viewport” content=”width=device-width,minimum-scale=1″>,推荐包含initial-scale=1 必须在head标签中包含<link rel=”stylesheet” type=”text/css” href=”//m.baidu.com/static/ala/sf/static/css/miphtml_xxxxxx.css”> 必须在head标签中包含<script async src=”https://m.baidu.com/miphtml/v0.js”></script> 必须在head标签中包含<style>body {opacity: 0} </style><noscript><style>body {opacity: 1}</style></noscript> 必须在body标签中包含 <script src=”//m.baidu.com/static/ala/sf/static/js/miphtml_main_xxxxxx.js”> 更多具体内容请访问百度MIP官网:https://www.mipengine.org/转载于:https://my.oschina.net/txz0917/blog/1530447