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
Performance - Web 前端程式開發實務
Search
Joseph Chiang
May 02, 2013
Programming
200
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Performance - Web 前端程式開發實務
Joseph Chiang
May 02, 2013
More Decks by Joseph Chiang
See All by Joseph Chiang
不断归零的前端人生 - 2016 中国软件开发者大会
josephj
1
480
Let's Redux!
josephj
4
330
Automatic Functional Testing with Selenium and SauceLabs
josephj
2
330
From Hacker to Developer
josephj
1
180
tmuxinator
josephj
0
250
JavaScript Promise
josephj
0
260
Be an Internet Person
josephj
9
650
F2E Evolution
josephj
55
3.4k
F2E for Enterprise
josephj
42
5.7k
Other Decks in Programming
See All in Programming
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
800
【加筆修正版】Laravel のアプリケーションをどこにデプロイするか #phpcon_ehime
akase244
0
150
APNsからLive Activityを開始する話
yumnumm
0
150
dotNET_vulnclicker_intro.pdf
deka_morita
0
110
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
480
wkhtmltopdfの次どうするか問題2026
willnet
2
1.9k
自サークルのIdPからログアウトできるようになるまで
taiseiue
1
110
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
1.1k
仕様駆動開発による爆速プロダクト開発 / Bakusoku Spec Driven Development
kobakei
0
210
Jetpack Compose Mechanisms
skydoves
2
540
設計次第でAIコードの読む量は減らせる / designing-for-code-reading
minodriven
34
16k
Rでドレミ/Do-Re-Mi_with_R
florets1
0
130
Featured
See All Featured
What the history of the web can teach us about the future of AI
inesmontani
PRO
2
730
Producing Creativity
orderedlist
PRO
348
41k
Fireside Chat
paigeccino
43
4.1k
Navigating Weather and Climate Data
rabernat
0
550
How to make the Groovebox
asonas
2
2.5k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
550
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
How to Ace a Technical Interview
jacobian
280
24k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
Utilizing Notion as your number one productivity tool
mfonobong
4
610
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
490
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
510
Transcript
Copyright © 2012 FITPI. All rights reserved. ྛ≐ੀඣᅟིି భ؊۽ӱῘứℯ↩⇪‣
ᾣ℩ğᾠקდKPTFQIK 1
Copyright © 2012 FITPI. All rights reserved. 8FCིି 2 Our
performance golden rule is: optimize front- end performance first, that's where 80% or more of the end-user response time is spent. Steve Souders Google High Performance Engineer ᅟིିླ༵∱߄భ؊đၹᆜⅴ 3FTQPOTFℭᾇᇏđభ؊ᅝਔ b
Copyright © 2012 FITPI. All rights reserved. ᅟིିᾋṦ۽ऎ ๏ :4MPX
IUUQEFWFMPQFSZBIPPDPNZTMPX ๏ 1BHF4QFFE IUUQTEFWFMPQFSTHPPHMFDPNTQFFEQBHFTQFFE 3 նᇁῲ䪌൞ᄝ⏟´ఖᇏν⊬၂ἠ۽ऎ ၇ᅶ၂ུ⊵≣ ॖỆᆜ ٳ༅෮ᄝ∉ིି ‣↮ğ⊬ఏῲᄝӈႨ֥ᅟु
Copyright © 2012 FITPI. All rights reserved. 1BHF4QFFE 4
Copyright © 2012 FITPI. All rights reserved. :4MPX 5
Copyright © 2012 FITPI. All rights reserved. ∉ིି⇊ଢ ๏ $BDIF⏟´ఖ؊aයڛఖ؊a$%/
๏ (;JQ∉ẖ℻֥ሱọ⇭⅜Ὠᇅ ๏ 㦆ഒ)551⃪֥⅂ਈ ๏ ᾞ$44+BWB4DSJQUቋཬ߄ ๏ ⅾோቋࡄ߄ ๏ ↥ೖ≘ೆ 6 Ᾱਙԛ၂ིུିڿΆ֥ᇗề
Copyright © 2012 FITPI. All rights reserved. $%/ ๏ $POUFOU%FMJWFSZ/FUXPSLb
๏ 4FSWFS⟦ඇᄝಆൗࢸ֥ૄἠֹٚb ❖ "NB[POࠇ"LBNFJႵՎሿ ڛ↩b ๏ ♶⚧ῲჷᅟ֥+4$44*NBHFT֩僯Ⅲẵσb ๏ ℳႨᧄॴἽڛ↩֥ᇏնᅟb ❖ ২ೂ:BIPP (PPHMF֩ಆ౯߄ᅟb ๏ Ⴈᆀթ౼ቋ࣍ࠇ؇ቋॹ֥$%/4FSWFSđط٤ჰ ẵσթ٢ֹ֥ٚb 7
Copyright © 2012 FITPI. All rights reserved. 8 $%/ Ⴈᆀթ౼ቋ࣍ࠇ؇ቋॹ֥$%/4FSWFS
ط٤ჰẵσթ٢ֹ֥ٚ
Copyright © 2012 FITPI. All rights reserved. 9 ỚῘứ֥႕⇉ ๏
$%/၂֊ሂ֞ẵσđ≁℟٢୍ၛഈb ๏ ℭᾇ⤨҂ཟ֥යڛఖᇗྍ෬౼ẵσb ๏ Ῐứᆀླေڿṉẵࠇࡆഈϱὂč২ೂℭᾇՄὸa ࠇWFSTJPOĎҌି$%/ᇗሂ⊷ਘ ❖ ჰẵσğGPPKT ❖ ڿṉẵğGPP@SKT ❖ ᄹࡆ(&5Ṛ⅂ğGPPKT S
Copyright © 2012 FITPI. All rights reserved. (;JQ%FGMBUF 10 http://www.sebkuehn.com/blog/seo/speed-up-your-website-for-better-seo/
8FC4FSWFS∻#SPXTFSᾇ֥ࡆࢳ⇭⅜Ὠᇅ ᆦჱ(;JQ%FGMBUFđᾞ໓ሳẵ⇭⅜㬪#JOBSZẖෂ ᄝ#SPXTFS؊ࢳ⇭⅜a₹ῥॖᾳസޓ؟Ć
Copyright © 2012 FITPI. All rights reserved. (;JQ%FGMBUF 11 <IfModule
mod_deflate.c> DeflateCompressionLevel 6 AddOutputFilter DEFLATE html htm xml css js php AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php </IfModule> ໓ሳ ֥ẵσॖၛ℟ק
Copyright © 2012 FITPI. All rights reserved. 㦆ഒ)551⃪⅂ਈ 12 ๏
)551⇐ק֥3FRVFTU3FTQPOTF 5$1 ൞υἹ֥a∣ἐམḰم㦆ഒb ๏ 㦆ഒ⃪⅂ਈ֥ٚൔնᇁೂ༯ğ ❖ $444QSJUFTކ⟸֥ⅾோ ❖ ҆ٳⅾோ㍇Ⴈ%BUB63* ❖ ކ⟸+BWB4DSJQU$44ẵσ ❖ ⅾோ-B[Z-PBEℿ ๏ ֩༯ῲࢺℚކ⟸ࠣ-B[Z-PBE֥ℿ
Copyright © 2012 FITPI. All rights reserved. ⅾோቋࡄ߄ 13 ๏
(*'aᆦჱૼ *OEFY aọb ๏ 1/(aᆦჱ϶ૼ "MQIB ❖ ቋℳކ∉Ⴈ֥ⅾẵ۬ൔ ❖ "EPCF'JSFXPSLT൞ື၂ᆦჱ⊨㍤㬪1/(϶ૼ֥ℂⅴb ๏ 1/(⅂Ϥ↋aᆦჱ϶ૼ "MQIB b ❖ ♶≗ⅾཞč٤ᅶோĎ ๏ +1(ᾹℳކႨᧄᅶோb ๏ ⇢≢ⅾோ۬ൔ֥喆ࣁჰ≣ğ ᅶோႨ+1&(aọႨ(*'aః∸ಆ҆Ⴈ1/(b ๏ ⅾோ䥰Ⴕޓ؟Ⴈ҂֥֞⊷⇫đॖၛἾ۽ऎࢆ֮ᆜⅴ4J[F IUUQTHJUIVCDPNKPTFQIKPQUJNH
Copyright © 2012 FITPI. All rights reserved. ིିࢳ㢯ٚσ 14 ၂ུିॹڿభ؊ིି֥۽ऎ∻ٚم
Copyright © 2012 FITPI. All rights reserved. 15 $44+BWB4DSJQU֥ ކ⟸∻ቋཬ߄
Ⴈ۽ऎ၂Ցࢳ㢯‥ἠིି↜ⅳ
Copyright © 2012 FITPI. All rights reserved. ⇢≢.*/* Ἶ℟קẵ ᾞ؟ἠẵσކ⟸aቋཬ߄
֥Ῐứὔ۽ऎ http://www.flickr.com/photos/prettypony/2644225789/ https://github.com/josephj/mini 16
Copyright © 2012 FITPI. All rights reserved. ⇨ᅳẵσ֥ਫ਼đॖၛႵ؟ἠ %&7@3005൞"QBDIF֥ὔṉ⅂ ק∕EFNPႵଧུ$44∻+4ẵσ
17 Ἶ℟קẵק∕ଆ⊾
Copyright © 2012 FITPI. All rights reserved. /mini?module=<module>&type=<css|js> 18 ℯόթ౼ٚൔ
ቋཬ߄
Copyright © 2012 FITPI. All rights reserved. 19 ྩڿభ ⃪ਈӑ؟
Copyright © 2012 FITPI. All rights reserved. 20 ྩڿᗥ նږ㦆ഒ⃪ਈ
Copyright © 2012 FITPI. All rights reserved. 21 ‣↮ğ.JOJ ๏
⃪༯≘NJOJaࢳ⇭⅜֞$="QQ4FSW=XXX=MJC IUUQGFDMBTTDPNMBCQFSGPSNBODFNJOJ[JQ ๏ ᄝ"QBDIF℟קẵ䥰ᄹࡆ‥ྛ ླᇗ⬏ "MJBTNJOJ$="QQ4FSW=XXX=MJC=NJOJ=NJOJ@XFCQIQ 4FU&OW%&7@3005$="QQ4FSW=XXX ๏ ྍᄹ၂ἠ.JOJ℟קẵaᄹࡆ၂ུ+4$44ẵ $="QQ4FSW=XXX=DPOG=NJOJ=NJOJYNM ๏ Ⴈၛ༯ٚൔुु൞ڎႵ℟קӮۿğ IUUQMPDBMIPTUNJOJ UZQFUZQFNPEVMFNPEVMF
Copyright © 2012 FITPI. All rights reserved. ⇢≢.JOJGZ ๏ IUUQDPEFHPPHMFDPNQNJOJGZ
๏ .JOJ൞Ἶ℟קẵa.JOJGZ≣൞ᆰࢤạ ᆶᆷקb ๏ ∻:6*$PNCP)BOEMFS֥ቔم၂ᇁ ๏ Ⴕ(&5ṵ؇ཋᇅ↜ⅳ ,_, b 22 http://<your host>/minify?f= ẵσ1֥ਫ਼ ẵσ2֥ਫ਼ ẵσn֥ਫ਼
Copyright © 2012 FITPI. All rights reserved. 23 ‣↮ğ.JOJGZ ๏
⃪༯≘NJOJGZaࢳ⇭⅜֞$="QQ4FSW=XXX=MJC IUUQGFDMBTTDPNMBCQFSGPSNBODFNJOJGZ[JQ ๏ ᄝ"QBDIF℟קẵ䥰ᄹࡆ‥ྛ ླᇗ⬏ "MJBTDPNCP$="QQ4FSW=XXX=MJC=NJOJGZ=NJO= ๏ ྩڿ℟קẵ $="QQ4FSW=XXX=MJC=NJOJGZ=NJO=DPOGJHQIQ ๏ Ⴈၛ༯ٚൔुु൞ڎႵ℟קӮۿğ IUUQMPDBMIPTUDPNCP GGJMF GJMF GJMF
Copyright © 2012 FITPI. All rights reserved. 24 ↥ቅೖ≘ೆ TDSJQUTSDၛຓ֥ٚൔ
+BWB4DSJQU≘ೆ֥۷ⅆṹ /POCMPDLJOH+BWB4DSJQU
Copyright © 2012 FITPI. All rights reserved. ≘ೆຓ҆4DSJQU 25 ๏
҂ܵ൞TDSJQUTSDࠇMJOLISFGೖᗥ⇟ ⤨ಸ֥↾ൕb ❖ http://f2eclass.com/lab/performance/blocking- javascript.html ๏ ཞ൞(PPHMF"OBMZUJDTࠇ'BDFCPPL4PDJBM 1MVHJOิ܂ⅶೆᅟ֥ჰ҂ೖb ๏ ὕὸ֤EPDVNFOUDSFBUFॖၛࡹ৫ᾳề֥ٚൔ Ĥၛ≾∄֥ٚൔ≘ೆຓ҆4DSJQUࣼॖၛх૧ ೖb
Copyright © 2012 FITPI. All rights reserved. ཟ'#⇥↮↥ೖ 26 <script
type=”text/javascript”> (function () { var el = document.createElement("script"); el.type = "text/javascript"; el.src = "要載⼊入 JavaScript 的 URL"; el.async = true; document.getElementsByTagName("head")[0].appendChild(el); }()); </script> http://f2eclass.com/lab/performance/non-blocking-javascript.html
Copyright © 2012 FITPI. All rights reserved. 27 *NBHF-PBEFS Ⴈ:6*֥*NBHF-PBEFS۽ऎ㦆ഒồ౼҂сေ֥ⅾẵ
Copyright © 2012 FITPI. All rights reserved. 28 Ⴕޓ؟ⅾோ֥∉૫ ๏
∉ᇏႵޓ؟ⅾோč২ೂữ২ᅟĎaⁿ ႨẖⅼJNHTSDቓ≘ೆbằồ౼Վ∉ℭ ෮Ⴕ֥ⅾோ൞၂⟸༯≘֥b ๏ Ⴈᆀॖିᆺुഒ҆ٳ֥ⅾa㢻ु֥֞ⅾࣼ শỷਔ≘ೆ֥ੀਈਔ ๏ :6*֥*NBHF-PBEFS۽ऎğằႨᆀॹ⚂֞ ॖ൞⃯თຓ֥ⅾோℭaҌῘ≘ೆb
Copyright © 2012 FITPI. All rights reserved. :6*֥*NBHF-PBEFS ๏ х૧ႨJNHaڿႨEJWaᾞⅾẵਫ਼ၛ
TUZMF֥CBDLHSPVOEJNBHFℾྟ℟קb ๏ ቅᆸⅾோ↾ൕğᄝ$44ᇏ℟קⅾோ㬪 CBDLHSPVOEOPOFJNQPSUBOU ๏ :6* VTFႨJNBHFMPBEFSଆ⊾ ๏ OFX:*NH-PBE(SPVQ \ GPME%JTUBODFὖẈ⃯ए DMBTT/BNFEJW֥DMBTT/BNF ^ 29 ‣↮ğhttp://f2eclass.com/lab/performance/imageloader.php
Copyright © 2012 FITPI. All rights reserved. 30 ིି3FWJFX ๏
భ؊ᅝਔ֥ồ౼ℭᾇb ๏ ೂޅᾋṦ∉ིିğ:4MPX1BHF4QFFE ๏ భ؊Ⴕଧུӈᾖིି⇊ଢĤ ๏ ೂޅॹڿΆ≾ིུିĤ
Copyright © 2012 FITPI. All rights reserved. 31 Q &
A