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
2fast2furios
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Denis
June 01, 2019
Programming
0
100
2fast2furios
fast web for people
Denis
June 01, 2019
Tweet
Share
More Decks by Denis
See All by Denis
Refactoring
denredsky
0
230
npm
denredsky
0
100
Other Decks in Programming
See All in Programming
[KNOTS 2026登壇資料]AIで拡張‧交差する プロダクト開発のプロセス および携わるメンバーの役割
hisatake
0
270
humanlayerのブログから学ぶ、良いCLAUDE.mdの書き方
tsukamoto1783
0
190
Fragmented Architectures
denyspoltorak
0
150
なぜSQLはAIぽく見えるのか/why does SQL look AI like
florets1
0
450
AI Agent の開発と運用を支える Durable Execution #AgentsInProd
izumin5210
7
2.3k
疑似コードによるプロンプト記述、どのくらい正確に実行される?
kokuyouwind
0
380
AWS re:Invent 2025参加 直前 Seattle-Tacoma Airport(SEA)におけるハードウェア紛失インシデントLT
tetutetu214
2
110
Lambda のコードストレージ容量に気をつけましょう
tattwan718
0
110
OSSとなったswift-buildで Xcodeのビルドを差し替えられるため 自分でXcodeを直せる時代になっている ダイアモンド問題編
yimajo
3
610
Vibe Coding - AI 驅動的軟體開發
mickyp100
0
170
AgentCoreとHuman in the Loop
har1101
5
230
MUSUBIXとは
nahisaho
0
130
Featured
See All Featured
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
430
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
1
1.4k
GraphQLとの向き合い方2022年版
quramy
50
14k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
1
1.3k
Side Projects
sachag
455
43k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
200
Amusing Abliteration
ianozsvald
0
97
The browser strikes back
jonoalderson
0
360
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
79
Paper Plane (Part 1)
katiecoart
PRO
0
4k
How to Ace a Technical Interview
jacobian
281
24k
The Pragmatic Product Professional
lauravandoore
37
7.1k
Transcript
React Russia 2019 Быстрее, стройнее, умнее Красновский Денис telegram: @jquery_dlya_slabih
React Russia 2019 2
React Russia 2019 3 Hello, WEB Slowking, Slowpoke, Slowbro и
Slow web
React Russia 2019 4 SEO
React Russia 2019 5 User experience
React Russia 2019 6
React Russia 2019 7 Check it! • Sonarlint • Lighthouse
• PageSpeed Insights
React Russia 2019 8 Bad news…
React Russia 2019 9
React Russia 2019 10
React Russia 2019 11 Phase 2 1. Оптимизация ресурсов (js,
css, html, images, …) 2. Code splitting 3. Правильная поддержка старых браузеров 4. Compress it
React Russia 2019 12 Browserslist Share target browsers across projects
and front-end tools, like @Autoprefixer, @Stylelint and @babeljs
React Russia 2019 13 Define browsers environment
React Russia 2019 14 Webpack Static module bundler for modern
JavaScript applications
React Russia 2019 15 JS optimization Since version 4 webpack
runs optimizations for you depending on the chosen mode, still all optimizations are available for manual configuration and overrides
React Russia 2019 16 optimization.minimizer
React Russia 2019 17 CSS optimization • css-loader • postcss-loader
• optimize-css-assets-webpack-plugin
React Russia 2019 18 CSS optimization
React Russia 2019 19 CSS optimization
React Russia 2019 20 CSS optimization
React Russia 2019 21 HTML optimization html-webpack-plugin remove render blocking
scripts
React Russia 2019 22 Images optimization image-webpack-loader or https://jakearchibald.github.io/svgomg/
React Russia 2019 23 Babel The compiler for next generation
JavaScript
React Russia 2019 24 babel-preset-env • modules • loose •
targets
React Russia 2019 25 babel-plugin-transform-react-remove-prop-types
React Russia 2019 26 vendors ~ 294 KB app ~
149 KB max weight page ~ 197 KB … min weight page ~ 8 KB Code splitting [theory]
React Russia 2019 27 WEBSITE PAGE 3 PAGE 2 LOGIN
… PAGE 10 VENDORS APP.JS LOGIN.JS PAGE_1.JS … PAGE_10.JS w/o code splitting [theory] APP.CSS LOGIN.CSS PAGE_1.CSS … PAGE_10.CSS
React Russia 2019 28 WEBSITE PAGE 3 PAGE 2 LOGIN
… PAGE 10 VENDORS APP.JS With сode splitting [theory] APP.CSS LOGIN.JS LOGIN.CSS PAGE_3.JS PAGE_3.CSS
React Russia 2019 29 Code splitting [practice]
React Russia 2019 30 Old browsers support • В идеале
необходим сплит между старыми и новыми браузерами • Правильно работать с @babel/polyfill
React Russia 2019 31 @babel/polyfill • modules • loose •
targets • useBuiltIns
React Russia 2019 32 useBuiltIns • entry • usage
React Russia 2019 33 Compress it • nginx • compression-webpack-plugin
React Russia 2019 34 Expected result
React Russia 2019 35 Result
React Russia 2019 36 P.S.
React Russia 2019 37 Pitfalls 1. оверхед 2. dev инструменты
в production коде 3. npm driven development
React Russia 2019 38 npm driven development
React Russia 2019 39 Tools 1. Import-cost 2. bundlephobia.com 3.
duplicate-package-checker-webpack-plugin
React Russia 2019 40 Спасибо за внимание, вопросы? Telegram: @jquery_dlya_slabih
http://bit.ly/reactDomClick