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
d2forum
July 20, 2012
4
20k
如何发现前端的性能问题
优化前端性能,最大的问题不是在于怎样优化,而是怎样找出问题。本次分享包含以下几大部分内容:1 通过日志来分析问题。2 通过 har 来分析问题。3 通过监控来发现问题。
d2forum
July 20, 2012
Tweet
Share
More Decks by d2forum
See All by d2forum
TMS的PHP特性
d2forum
0
1.6k
Leap Motion体感实战
d2forum
0
1.2k
跨终端产品实践
d2forum
12
1.9k
Touching Future—s01-e01
d2forum
2
890
KissyCake
d2forum
3
750
贡献标准.s01.e02
d2forum
3
1.3k
一淘响应式设计实践
d2forum
10
950
响应式web设计与实现介绍
d2forum
8
790
定制版设计开发vs响应式设计开发
d2forum
0
170
Featured
See All Featured
How to train your dragon (web standard)
notwaldorf
88
5.7k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
1.9k
Writing Fast Ruby
sferik
627
61k
Building a Scalable Design System with Sketch
lauravandoore
459
33k
Happy Clients
brianwarren
98
6.7k
Intergalactic Javascript Robots from Outer Space
tanoku
269
27k
4 Signs Your Business is Dying
shpigford
180
21k
Measuring & Analyzing Core Web Vitals
bluesmoon
4
130
Designing for humans not robots
tammielis
250
25k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
0
120
Large-scale JavaScript Application Architecture
addyosmani
510
110k
Transcript
!aoao@ 012(07(07!hangzhou ྟି໙ี ೂޅؿགྷభ؊֥
❈8FJCP!BPBP ❈MPBPBP!HNBJMDPN ❈XXXBPBPPSHDO !aoao@ 012(07(07!hangzhou ྟି໙ี ೂޅؿགྷభ؊֥
❉ྐ༏ ❂ࡆᄛൈ ‘ࡓ॥ !aoao@ 012(07(07!hangzhou ྟି໙ี ೂޅؿགྷభ؊֥
1 ྐ༏ ࠎႿರᆽ֥ඔऌٳ༅
୍ ୍ |c 8&ĕĕĝġ$8×ËďÐč10vËĕĝPġn¤Ć©£Ėøâ610vġeÏ˧10v OġKæ¤10_ġä102ĒĠĈ¤ã±ËġX ăáÖË;ğÊ»ôWËßdا)ġ ¡!2®ġ~'ü¹ÆË´
ٳᇒ ٳᇒ |c 8&ĕĕĝġ$8×ËďÐč10vËĕĝPġn¤Ć©£Ėøâ610vġeÏ˧10v OġKæ¤10_ġä102ĒĠĈ¤ã±ËġX ăáÖË;ğÊ»ôWËßdا)ġ ¡!2®ġ~'ü¹ÆË´
౨ੱ Ⴈਔ؟ഒ൞ॖၛෘԛট֥
17 ౨ੱ Ⴈਔ؟ഒ൞ॖၛෘԛট֥ ü¹Æ*in¤þ¿200+304ü¹ĐĘlzěĚËPV,Ďü¹Æ§ ÊRģ þ¿ü¹Æ50%ă5% ZNâÉËTf(²Ġ
ଧ۱໓ࡱ Фଧ۱်૫ Ⴈહሑ ႄႨਔ؟ഒՑ ¡!2®òÛÞ= UîUěĚÊ Å ~Ê]mµ ġn¤0GË¢G0W¬
Y3FGFS
်૫ሧჷႨ౦ঃ X §÷ěĚ)ÛġnKćC1ěĚËÊ.
ሧჷႨૼ༥ KÎ6·þ¿ËúÊ. <4ûËü¹Æ
None
ሧჷФႄႨ౦ঃ KÎ6Ďþ¿Z*ěĚË~Ê.
҂ൈࡗՄ b¯dZÍNþ¿ġ¤î1Ë NË£ĖġE «ď(ö»ôWæNËþ¿
ൈࡗՄ ၂ൈࡗՄ֥ٚൔ ࣼ൞҂ႨൈࡗՄ Ĝ!û£ĖËĕĝ
ౢԢߏթ JGSBNFMPDBUJPOSFMPBE D£Ėn§½ĘßdËĕĝġ ÝêÎ http://www.aoao.org.cn/blog/2012/06/update-browser-cache/
$PNCPૼ༥ ¼hËþ¿¤§comboËÊġÜ5Ëþ¿comboZāwMÈ
ෆ෬ଖ۱ሧჷ
,*44:ቆࡱٳ༅ K ÿ¢$=Ë2®ġN£FÇĕĝġNkissy îcomboLÓ L²Ëê
,*44:ቆࡱٳ༅ K ÿ¢$=Ë2®ġN£FÇĕĝġNkissy îcomboLÓ L²Ëê
ຩᅟ်૫ vs. 8$ěĚ=£¤?ěĚ2®ġ¤$ˤáÖġIěĚ
҂൞၂۱ದ ᄝᅞ
2 )"3 Ԯඪᇏ֥௸҃ٳ༅
Ĉo+^jzùuÊPġċuÙeJÀsYġ^jÐč6{¤ O
Ĉo+^jzùuÊPġċuÙeJÀsYġ^jÐč6{¤ O
Ĉo+^jzùuÊPġċuÙeJÀsYġ^jÐč6{¤ O
Ĉo+^jzùuÊPġċuÙeJÀsYġ^jÐč6{¤ O
௸҃ Ĉo+^jzùuÊPġċuÙeJÀsYġ^jÐč6{¤ O
)"3 )551"SDIJWF +40/๙Ⴈඔऌ۬ൔ
QBHFT< \ TUBSUFE%BUF5JNF JEQBHF@ UJUMFวЏຩวĆ༟ߋ QBHF5JNJOHT\ PO$POUFOU-PBE PO-PBE ^ ^
်૫ࠎЧྐ༏
@SFOEFS4UBSU PO$POUFOU-PBE PO-PBE ^ QBHFT< \ TUBSUFE%BUF5JNF JEQBHF@ UJUMFวЏຩวĆ༟ߋ QBHF5JNJOHT\
်૫ࠎЧྐ༏ §ąÒ§Ë9æġ¸b|c¾°Ë£Ė
ૄ۱౨֥༥ࢫ FOUSJFT< \ QBHFSFGQBHF@ TUBSUFE%BUF5JNF UJNF SFRVFTU\^ SFTQPOTF\^ UJNJOHT\^
DBDIF\^ DPNNFOU CMPDLFE EOT DPOOFDU TFOE XBJU SFDFJWF Ĥ UJNJOHT\^ ÝêĢ http://www.softwareishard.com/blog/har-12-spec/
-PDBM$BDIF ËàÁ¤ºæ÷Āª[ßdË"ġĈ¤æõ- Kõġµtßd µtßdġĈ²KÐčU¤Āª[ßdË
ೂޅࠆ౼
Firebug / NetExport HttpWatch IE Developer Tools Chrome Developer To
WEBPAGETEST Fiddler dynaTrace PhantomJS ᄸဢࠆ౼)"3
ु҂֥ᛍফఖ XXXQIBOUPNKTPSH PhantomJS
ቔႨĤ
YSlow PageSpeed )"3֥ቔႨ ]9æď¤\har 2®Ë
۱ྟ߄ ᄝᆃ۱છ્֥ൈսᄸି๙Ⴈ ìÂPageSpeedăYSlow aġ·áÖ立áÖÄéġċÊË¡³wgĊM
ÖZpËåçġ#ó3níġ¸b/mü¹2a0í N£KèrË;þ¿ĉí2ÚġU¤HËğUËyËğU¤;ÊËØØġĈ² ¦¡!gĕĝ
ÖZpËåçġ#ó3níġ¸b/mü¹2a0í N£KèrË;þ¿ĉí2ÚġU¤HËğUËyËğU¤;ÊËØØġĈ² ¦¡!gĕĝ
ÖZpËåçġ#ó3níġ¸b/mü¹2a0í N£KèrË;þ¿ĉí2ÚġU¤HËğUËyËğU¤;ÊËØØġĈ² ¦¡!gĕĝ
54MPX ĈăYSlow%ġI¤ĂZ¨;WËġÊhar2® ġÇZ9æKæćºª[aĠ ò$RģK¦¡!Ë:'g7Ë,k
54MPX ĈăYSlow%ġI¤ĂZ¨;WËġÊhar2® ġÇZ9æKæćºª[aĠ ò$RģK¦¡!Ë:'g7Ë,k
54MPX ĈăYSlow%ġI¤ĂZ¨;WËġÊhar2® ġÇZ9æKæćºª[aĠ ò$RģK¦¡!Ë:'g7Ë,k
54MPX ĈăYSlow%ġI¤ĂZ¨;WËġÊhar2® ġÇZ9æKæćºª[aĠ ò$RģK¦¡!Ë:'g7Ë,k
:4MPX భ؊ඔऌᇏྏ
ؓગĤ
3 ࡓ॥ ቕᄝࡅुႯࡱ္ିؿགྷ໙ี
ܱൈࡗ 4UBSU3FOEFS %PN3FBEZ 1BHF-PBE 55*
4UBSU3FOEFS ᛍফఖषᛴಙ NT'JSTU1BJOU
4UBSU3FOEFS 55'# 5JNF5P'JSTU#ZUF ؿఏ౨֞ڛༀఖْ߭ඔऌ֥ൈࡗ 55%% 5JNF5P%PDVNFOU%PXOMPBE Ֆڛༀఖ༯ᄛ)5.-໓֖֥ൈࡗ 55)& 5JNF5P)FBE&OE )5.-໓֖҆ࢳ༅ປӮ෮ླေ֥ൈࡗ
%PN3FBEZ ်૫ࢳ༅ປӮ %PN$POUFOU-PBEFE
%PN3FBEZ 4UBSU3FOEFS 55%$ 5JNF5P%PN$SFBUFE %0.ඎԷࡹ෮ཨݻൈࡗ 5545 5JNF5P4DSJQU #0%:ᇏ෮ႵЧࡆᄛބᆳྛ֥ൈࡗ
1BHF-PBE ်૫ࡆᄛປӮ XJOEPXPOMPBE
1BHF-PBE 4UBSU3FOEFS %PN3FBEZ 3FTPVSDF%PXOMPBE ࡥֆটඪ෮Ⴕ֥ሧჷࡆᄛປ
55* 5JNF5P*OUFSBDU ॖࣉྛࢌ֥ൈࡗ ¸b ¼hĞě¶ ËxQ¥Ñ1ÇË£Ė ¸b VSúě ÕAýēKÊË£Ė
55* 5JNF5P*OUFSBDU 4UBSU3FOEFS $PSF)5.-3FOEFS ނྏۿିཌྷܱ֥)5.-ᛴಙປӮ $PSF+BWBTDSJQU#JOE ނྏۿିཌྷܱ֥+BWBTDSJQUϾקປӮ
അབྷ౦
VSúě$iĄġFǧï#ăºï#ËěĚq5Ä5^Ġ
EJGGልྩ Ⴕሱ််ָ֥࠭ ٳোॖିݷޓ؟čࣼ൞ݺ؟ோĎ ିልྩ֥ᇶഅோ၂Ϯޓ؟ ၂ུϖᄦ֥ଆॶ 1µË>5£ġnKöđl=
{ JSTracker } ĘÌ£ĖġćÌ1ĔË.
iÇwę window.onerror
None
$44/BLFE ćÌěĚð`Ë.
None
ॢဢൔ N£Ĝ!FÇĕĝġ§@jġiėBÔ˲}Ġ áČćaġáČ£ġÊBZëØf(º ËñĠ
྆྆ᯚ๐ ֥໙ี
None