MIP (Mobile Instant Pages) can make web pages open fast by optimizing javascript and resources.
A carousel effect can be as easy as below:
<script async src="https://c.mipcdn.com/static/v1/mip.js"></script>
<mip-carousel>
<mip-img src="https://github.com/mipengine/mip/raw/master/01.jpg"></mip-img>
<mip-img src="https://github.com/mipengine/mip/raw/master/02.jpg"></mip-img>
<mip-img src="https://github.com/mipengine/mip/raw/master/03.jpg"></mip-img>
</mip-carousel>
Fast. Most pages build by MIP will load in 1 second.
Easy to use. Use components to assemble a page, no need to write javascript.
Load on demand. Both images and scripts are load on demand, minify network resources.
Currently, all of the tutorials are written in Chinese. If you need an english version, please submit an issue to let us know.
If you have suggestions to a function or extensions, feel free to report an issue or make a pull request.
If code are modified, run npm install
, npm run build
to build a mip.js for preview.
Before adding a pull request, make sure:
Copyright (c) 2015-present, Baidu Inc.