We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
common
原 m.suning.com 域名 <link rel="stylesheet" type="text/css" href="http://m.suning.com/RES/wap/common/style/base/2.0/base.css"> 对应 res.m.suning.com 域名 <link rel="stylesheet" type="text/css" href="http://res.m.suning.com/common/style/base/2.0/base.css">
<link rel="stylesheet" type="text/css" href="http://res.m.suning.com/common/style/base/2.0/base.css"> <div class="border">实心边框</div> <div class="border-t">上边框</div> <div class="border-b">下边框</div> <div class="border-tb">上下边框</div>
// lib/zepto/1.1.4/zepto.min.js 内置了 lazyload 方法 <script type="text/javascript" src="http://res.m.suning.com/common/script/lib/zepto/1.1.4/zepto.min.js"></script> <style type="text/css"> /* 需要 lazyload 的图片自己把 opacity 设为 0 */ .img-list img{opacity:0;} </style> <div class="img-list"> <img data-src="http://image3.suning.cn/b2c/catentries/000000000126006615_1_200x200.jpg"> </div> <script type="text/javascript"> lazyload(".img-list"); </script>
// lib/zepto/1.1.4/zepto.min.js 内置了 _loadScript_ 方法 <script type="text/javascript" src="http://res.m.suning.com/common/script/lib/zepto/1.1.4/zepto.min.js"></script> // 引入通用加载方法 _loadScript_({ // 加载的资源,依赖加载 srcArr:[ "http://res.m.suning.com/common/script/module/swipe/1.1.0/swipe.js?v=2015090106", "http://m.suning.com/RES/wap/V3/script/template/goods.js?v=2015090106" ], // 加载完毕的回调方法 loadComple: function(){ } })
搭配移动端前端性能优化规范阅读
The text was updated successfully, but these errors were encountered:
No branches or pull requests
系统迁移
common
内资源,统一引用 res.m.suning.com 路径一像素的解决方案(根据新机型发布定期更新)
客户端内置页面减少白屏方案
首屏问题
按需加载
搭配移动端前端性能优化规范阅读
The text was updated successfully, but these errors were encountered: