Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
2011淘宝首页改版实践
Search
wagjie
August 02, 2012
Design
290
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
2011淘宝首页改版实践
test
wagjie
August 02, 2012
Other Decks in Design
See All in Design
Figmaを使わなくなった私が、最近していること
mela_dayo
0
120
明日から真似できる、AIでデザインシステムを活用する方法
vivion
0
890
デザインワークフローの最前線。 ログラスでのAI活用の現在地
ukaoli
1
3.5k
From Desktop to Spatial Interfaces UX Design Implications of Evolving Interaction Paradigms
hcrane
0
120
HeartLanguage - DesignProcess
heartlanguage
0
240
プレゼンスライド作成で意識していること
kimichan
0
140
RawrXD: The Sword
seanvraj_arts
0
190
デザインハーネスをつくるハーネス|誰でも自社らしいデザインをつくれるようにする仕組み
katakai
0
1.4k
Findy - デザインチーム紹介 / Findy Design Team Culture Deck
findyinc
14
150k
Luna's Light
shemeetscity
0
660
デザインハーネス 〜AIが生成する"デザイン"の妥当性を、誰がどう担保するのか〜 / PdEConf2026 Design Harness
kgsi
14
22k
Agentic Design Workflowを育てる 「三層デザインハーネス」の現在地
sayadesign2
0
800
Featured
See All Featured
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
570
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.8k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
370
How to Think Like a Performance Engineer
csswizardry
28
2.9k
The Limits of Empathy - UXLibs8
cassininazir
2
720
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
730
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
630
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
640
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Ruling the World: When Life Gets Gamed
codingconduct
0
400
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
710
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
340
Transcript
2011淘宝首页开发实践 2011-01-14 • 拔赤 http://jayli.github.com
拔赤 - 前端开发工程师 2008.4 - 2009.9 Yahoo! 2009.9 - present
Taobao
http://www.taobao.com
一、从单兵作战到团队开发
约定“词汇表” css/js命名规则源自词汇表
各自独立的demo.html 统一的layout.html 通过SSI调用各模块demo
搭建本地a.tbcdn.cn环境,模拟cdn的combo http://wiki.ued.taobao.net/doku.php?id=ued.bj:f2e:tbcdn http://www.slideshare.net/lijing00333/yui-combo?from=ss_embed
基于kissy 1.1.6 各自使用沙箱,避免全局变量冲突
使用打包脚本 build.sh 统一发布js/css
小结: • 约定词汇表 • 基于 SSI 和 combo 的本地开发环境 •
打包脚本 目的:减少冲突
• http://wiki.ued.taobao.net/doku.php?id=ued. bj:f2e:tbcdn • http://www.slideshare.net/lijing00333/yui- combo?from=ss_embed ref
二、摆脱栅格的束缚
栅格 “万变”的layout布局?
淘宝现有 950 栅格原型
990 栅格 30(列宽) x 25(列) + 10(槽宽) x 24(槽数) 290
300 1000px “栅格”? C(列宽) x n(列) + 10(槽宽) x (n-1)(槽数)
n∈[15,40],C∈Z 无解
设计和实现都不必拘泥于栅格系统
典型的双飞翼布局,无确切语义的多余标签
标识位置的“语义” => 描述内容的“语义” 绝对定位,简单高效
• http://grid.mindplay.dk/ • http://ued.taobao.com/blog/2008/10/22/grid _system_research_1/ • http://ued.taobao.com/blog/2008/10/22/grid _system_research_2/ • http://ued.taobao.com/blog/2008/10/22/grid
_system_research_3/ • http://ued.taobao.com/blog/2008/10/22/grid _system_research_4 ref
三、从 HTML4 到 HTML5
IE 9 Safari 4+ Opera 10+ Chrome 4+ Firefox 3.6+
让ie6/7/8 支持 HTML5 标签 <html> <head> <style> figure { color:orange;
} </style> <script>document.createElement("figure");</script> </head> <body> <figure> 淘宝网! </figure> </body> </html>
None
Let’s Do it!
淘宝网 ie6/7/8 禁用脚本访问量占 0.1%+ 如果ie6/7/8禁用脚本?
<!--[if lte IE 8]> <noscript> <style> .html5-wrappers {display:none !important;} </style>
<div class="ie-noscript-warning"> 您的浏览器禁用了脚本,请<a href="">查看这里</a>来启用脚本! 或者<a href="/?noscript=1">继续访问</a>. </div> </noscript> <![endif]-->
如果禁用了 ie 脚本
IE 禁用脚本访问 /?noscript=1 Firefox 禁用脚本 Opera 禁用脚本
• 跟随向导启用脚本 • 进入 html4 标签页面 IE 6/7/8 禁用脚本用户的选择
根据可用性设计的思想,这个时候,你应该 告诉用户,哪些事是不对的,以及怎样纠正, 这种做法被称之为"防御性设计" (Defensive Design)。 —— Joel Spolsky
• http://ejohn.org/blog/html5-shiv/ • http://www.alistapart.com/articles/previewofh tml5 • http://www.impressivewebs.com/demo- files/easy-html5-template/ • http://www.facebook.com/home.php?_fb_no
script=1 ref
四、fast by default
我们过于依赖 Yslow 和 pageSpeed?
却忽视了影响体验最重要的因素:时间!
目标:将 first rendering(绿) 提前
• 内容的延时加载 • Dom节点的延时渲染 • 函数的延时执行 • 将 sprites 载入提前
• 缓存、combo… 传统优化策略依然适用
最易被忽视的真相:JavaScript 执行效率 • 首页去 Tbra • 减少对DomReady的依赖 • 重构臃肿的逻辑
2010c (旧)版首页 CPU 消耗 2011a (新)版首页 CPU 消耗 客户端 CPU
损耗对 FirstRendering 的影响
0.5s 1.0s 1.5s 2.0s 3s ebay amazone dangdang buy360 taobao
E-Shopping 网站渲染速度
• http://v.youku.com/v_show/id_XMjM2MTkxNTI w.html • http://www.webpagetest.org/result/110110_0 J_879P • http://www.webpagetest.org/result/110110_7 N_87A7 ref
五、其他细节
必要的菜单延时
/* except for ie 6/7/8 */ .J_slide li { -moz-border-radius:20px;
-webkit-border-radius:20px; border-radius:20px; height:20px; } 圆角的实现
/* 圆角 for ie6,7,8 use vml */ var css =
document.createStyleSheet(); css.addRule("v\\:roundrect", "behavior: url(#default#VML);display:inline-block;"); var rect = document.createElement('v:roundrect'); setAttribute(rect, { arcsize:"20px", stroked:false }); rect.css({ width:"20px",height:"20px", antialias:true }); IE 6/7/8使用js实现圆角
首页开发文档
Just for fun…
• http://msdn.microsoft.com/en- us/library/bb250524%28v=vs.85%29.aspx • http://wiki.ued.taobao.net/doku.php?id=team :udc:fp_2011a_dev:start ref
鸣谢!
昂首挺胸 迈进HTML5时代!
拔赤
[email protected]
http://jayli.github.com