Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
如何解读页面性能
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Max
February 05, 2013
Programming
110
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
如何解读页面性能
如何解读页面性能
Max
February 05, 2013
More Decks by Max
See All by Max
分层语义化模板实现
maxlee
0
180
让前端开发更高效
maxlee
1
200
如何发现前端性能问题
maxlee
4
200
七年很痒
maxlee
1
140
跟乐高学模块设计
maxlee
2
150
从YUI2到YUI3看前端的演变
maxlee
0
130
Qzone-前端-CPU-性能优化
maxlee
0
200
更好的文件组织
maxlee
0
97
Mobile App Action design
maxlee
1
100
Other Decks in Programming
See All in Programming
jQueryをバージョンアップする前に使いたいjQuery Migrate
matsuo_atsushi
0
490
脅威をエンジニアリングの糧にして――現場編 / Turning Threats into Engineering Fuel — Field Edition
nrslib
0
280
Mujeres en SEO Summit 2026 - Greatest Disaster Hits en Web Performance
guaca
0
180
ローカルLLMでどこまでコードが書けるか -拡張版 / How much code can be written on a local LLM Extended
kishida
11
4.1k
軽量Java基盤の設計 DIコンテナに頼らない、長期保守と1秒起動の実現 JJUG CCC 2026 Spring
macha64
0
520
AI 時代のソフトウェア設計の学び方
masuda220
PRO
29
12k
生成AI時代にこそ効くGo | Why Go Works in the Age of Generative AI
mom0tomo
8
3.2k
作って学ぶ、 JSX (TSX) ランタイムの基本
syumai
7
1.6k
Oxcを導入して開発体験が向上した話
yug1224
4
310
Contextとはなにか
chiroruxx
1
320
OSもどきOS
arkw
0
560
Lessons from Spec-Driven Development
simas
PRO
0
200
Featured
See All Featured
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.7k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.2k
For a Future-Friendly Web
brad_frost
183
10k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
210
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.9k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Rails Girls Zürich Keynote
gr2m
96
14k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
200
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
200
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
370
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
250
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
580
Transcript
如何解读页面性能 heavenhuang
• 如何找到关键数据? • 多快才算快? • 想要更快要如何做? • 怎么收集优化成果?
问题总在前端
None
YSlow:buy.qq.com
如何找到关键数据? 工具:Firefox、 Chrome、测速系统…… 关键点: • 首屏展开时间 ◦ 首屏体积 • 主功能可交互时间
◦ JS加载时间 ◦ JS执行时间 • 页面完成时间
如何找到关键数据? 间接数据 • 页面模块点击 • 运营重点模块 • 成交转化 • 用户访问频率
多快才算快? 页面体积 / 网速 = 基本访问时间 实际访问>基本访问时间 = 慢
多快才算快? JS加载时间 + 执行时间 = 主功能可交互时间 主功能可交互时间 > 主功能展示时间 +
1秒 = 慢
想要更快如何做? • 让访问速度更快 ◦ 合理cache配置 ◦ 文件GZIP ◦ 图片压缩 ◦
按需加载 img、js
想要更快如何做? • 让用户觉得快 ◦ 消除阻塞 ◦ 以内容优先度展示 ◦ 收敛域名数量 ◦
ajax解耦 ◦ 交互解耦
想要更快如何做? • 让整个产品都快起来 ◦ 跨页面cache ◦ preLoad ◦ js模块复用 ◦
交互优化
• 浏览器preLoad ◦ IE8+ Lookahead Downloader ◦ Firefox7+ prefetch(HTML5属性) ◦
Chrome14+ prerender(HTML5属性) 参考资料:https://developer.mozilla.org/en/link_prefetching_faq 新技术 <a href="xxx.xxx.xxx.js" rel = "prefetch">
新技术 • SPDY ◦ SPDY 是 Google 开发的基于传输控制协议 (TCP) 的应用层协议
,开 发组正在推动 SPDY 成为正式标准(现为互联网草案)。SPDY 协议旨 在通过压缩、多路复用和优先级来缩短网页的加载时间和提高安全性。 (SPDY 是 Speedy 的昵音,意思是更快) 参考资料:http://www.geekpark.net/read/view/158198
怎么收集优化成果? • 关键数据对比 ◦ CDN访问数据 ◦ TWS访问压力 ◦ 客户端测速 •
间接影响 ◦ 页面点击转化 ◦ 成交转化 ◦ 老用户回头率
None
None
Q & A