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
Make Your (React) Website Fast - DevFest 2022
Search
Tony Kimathi
November 05, 2022
Programming
340
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Make Your (React) Website Fast - DevFest 2022
Google DevFest Nairobi 2022
Tony Kimathi
November 05, 2022
Other Decks in Programming
See All in Programming
AI に Inclusive UI を書かせよう — Design Rules Skill で Compose UI を作り直す
theoriatec2024
1
380
AI駆動開発にグラフDBを重ねてみた
satoshi256kbyte
2
640
源内ハンズオン概要編
hideg
0
240
Hono + Inertia + React で LP を構築した話
oukayuka
2
200
ALB ログから Trace を気合で繋げる技術
fohte
7
850
AIと壁打ちしながら進めるコスト管理
fufuhu
2
1.9k
異なる設計思想のフレームワークを経験して得た学び
amekuhideki
2
1.4k
初心者DevRelとして参加者だった私が、DevRel Talks!#2に登壇するまでにしてきたこと
sokohirai
0
320
ソフトウェアエンジニアにとっての生成AI - 特性を知って使い倒す / generative ai for software enginner
kishida
7
2.3k
楽しそうなつよつよエンジニアと目が死んでる僕/A brilliant engineer having a blast, and dead-eyed me.
3l4l5
2
280
LLMは4年分のCompose移行を再現できるのか?実プロダクト279件のXMLで探る自動化の境界線
makun
0
260
信頼性の目標を誰も求めてない
shubox
0
470
Featured
See All Featured
Accessibility Awareness
sabderemane
1
190
WENDY [Excerpt]
tessaabrams
12
39k
Rails Girls Zürich Keynote
gr2m
96
14k
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
400
Embracing the Ebb and Flow
colly
88
5.2k
Utilizing Notion as your number one productivity tool
mfonobong
4
560
The Art of Programming - Codeland 2020
erikaheidi
57
14k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
The Limits of Empathy - UXLibs8
cassininazir
1
630
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.7k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
74
42k
Transcript
USIU Tony Kimathi Software Engineer, Microsoft Make Your (React) Website
Fast
Learning Objectives 1. Why is performance important? 2. How to
measure performance 3. Simple & advanced techniques you can use to optimize performance
Icebreaker
Why?
Google: 53% of mobile users abandon sites that take over
3 seconds to load https://www.marketingdive.com/news/google-53-of-mobile-users-abandon -sites-that-take-over-3-seconds-to-load/426070/
Quick Optimization Tips
SVGs
Compression • Up to 70% reduction in size • Less
bandwidth • Gzip/brotli • • https://www.multiutil.com/text-to- gzip-compress/
Deferred Images https://web.dev/browser-level-image-lazy -loading/
Async scripts
Dynamic Imports https://www.robinwieruch.de/rea ct-router-lazy-loading/ https://blog.saeloun.com/2022/03 /24/code-splitting-in-react.html
Lazy Loading https://www.robinwieruch.de/rea ct-router-lazy-loading/ https://blog.saeloun.com/2022/03 /24/code-splitting-in-react.html
Big O: More Performant Code • https://www.freecodecamp.org/news/big-o-notation-why-it-matters- and-why-it-doesnt-1674cfa8a23c/ • https://www.linkedin.com/pulse/big-o-notation-simple-explanation-ex
amples-pamela-lovett • https://www.bigocheatsheet.com/ • Space = O(n) • Time = O(n)
Many, many more…
Measuring Performance
Performance.now()
Benchmarks • https://jsbench.me/ • https://jsben.ch/
Google Lighthouse • https://web.dev/measure/ • https://developer.chrome.com/do cs/devtools/lighthouse/
WebPageTest https://www.webpagetest.org/
Profiling https://developer.chrome.com/docs/ devtools/evaluate-performance/
None
Thank you! :)