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
0
30
Make Your (React) Website Fast - DevFest 2022
Google DevFest Nairobi 2022
Tony Kimathi
November 05, 2022
Tweet
Share
Other Decks in Programming
See All in Programming
Effective Signals in Angular 19+: Rules and Helpers
manfredsteyer
PRO
0
110
KMP와 kotlinx.rpc로 서버와 클라이언트 동기화
kwakeuijin
0
160
競技プログラミングへのお誘い@阪大BOOSTセミナー
kotamanegi
0
360
PHPで作るWebSocketサーバー ~リアクティブなアプリケーションを知るために~ / WebSocket Server in PHP - To know reactive applications
seike460
PRO
2
510
これが俺の”自分戦略” プロセスを楽しんでいこう! - Developers CAREER Boost 2024
niftycorp
PRO
0
190
Webエンジニア主体のモバイルチームの 生産性を高く保つためにやったこと
igreenwood
0
340
ゆるやかにgolangci-lintのルールを強くする / Kyoto.go #56
utgwkk
2
400
PHPで学ぶプログラミングの教訓 / Lessons in Programming Learned through PHP
nrslib
3
300
Keeping it Ruby: Why Your Product Needs a Ruby SDK - RubyWorld 2024
envek
0
190
testcontainers のススメ
sgash708
1
120
Amazon S3 NYJavaSIG 2024-12-12
sullis
0
100
ChatGPT とつくる PHP で OS 実装
memory1994
PRO
2
110
Featured
See All Featured
Product Roadmaps are Hard
iamctodd
PRO
49
11k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
191
16k
Reflections from 52 weeks, 52 projects
jeffersonlam
347
20k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
28
900
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.5k
Into the Great Unknown - MozCon
thekraken
33
1.5k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7k
The Invisible Side of Design
smashingmag
298
50k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
6
520
[RailsConf 2023] Rails as a piece of cake
palkan
53
5k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
1.2k
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! :)