Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
如何解读页面性能
Search
Max
February 05, 2013
Programming
1
99
如何解读页面性能
如何解读页面性能
Max
February 05, 2013
Tweet
Share
More Decks by Max
See All by Max
分层语义化模板实现
maxlee
0
170
让前端开发更高效
maxlee
1
190
如何发现前端性能问题
maxlee
4
200
七年很痒
maxlee
1
130
跟乐高学模块设计
maxlee
2
140
从YUI2到YUI3看前端的演变
maxlee
0
130
Qzone-前端-CPU-性能优化
maxlee
0
200
更好的文件组织
maxlee
0
95
Mobile App Action design
maxlee
1
100
Other Decks in Programming
See All in Programming
マスタデータ問題、マイクロサービスでどう解くか
kts
0
110
re:Invent 2025 のイケてるサービスを紹介する
maroon1st
0
150
AI時代を生き抜く 新卒エンジニアの生きる道
coconala_engineer
1
410
Full-Cycle Reactivity in Angular: SignalStore mit Signal Forms und Resources
manfredsteyer
PRO
0
170
AIエージェントを活かすPM術 AI駆動開発の現場から
gyuta
0
460
チームをチームにするEM
hitode909
0
370
フルサイクルエンジニアリングをAI Agentで全自動化したい 〜構想と現在地〜
kamina_zzz
0
250
AI前提で考えるiOSアプリのモダナイズ設計
yuukiw00w
0
180
実は歴史的なアップデートだと思う AWS Interconnect - multicloud
maroon1st
0
250
Tinkerbellから学ぶ、Podで DHCPをリッスンする手法
tomokon
0
140
AIコーディングエージェント(Manus)
kondai24
0
210
Rubyで鍛える仕組み化プロヂュース力
muryoimpl
0
150
Featured
See All Featured
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
320
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.1k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.2k
Learning to Love Humans: Emotional Interface Design
aarron
274
41k
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
280
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.3k
Exploring anti-patterns in Rails
aemeredith
2
200
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.3k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.8k
GitHub's CSS Performance
jonrohan
1032
470k
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