Optimizing Web Performance
A P E R S O N A L E X P E R I E N C E
M A Í R A B E L L O
Facebook
Facebook
• They care A LOT about performance
• They are big
F A C E B O O K S U M M E R I N T E R N S - 2 0 1 0
Facebook
• They care A LOT about performance
• They are big
• Specialized infrastructure team (built React)
• Many tools (ex.: image spriting)
tracking.js
L I F E R AY
tracking.js
• Hard core performance
• Fast algorithms
• Optimizing constants
• Arithmetic operations
• Storing images in multi
dimensional arrays
• Typed arrays (ex.: Int32Array)
• Js Perf
24 frames per
second
41 ms per
frame
Metal.js
L I F E R AY
Metal.js
• Open source components library
• Support for hybrid rendering
without running Node.js
Metal.js
• Open source components library
• Support for hybrid rendering
without running Node.js
• Performance tests
• Studied about browser rendering
(courses from Google)
• Chrome Profiling
• Refactors and architecture changes
E-commerce
V T E X
VTEX
• Production build
• Uglify/gzip
• Caching resources
• Automatic code splitting
• Server side rendering (with cache)
• GraphQL (with cache)
Engage
In Loco
• Caching!
• Page Speed
In Loco
• Caching!
• Page Speed
• Raygun
M A I R A . B E L L O @ I N L O C O M E D I A .C O M

Optimizing Web Performance - A personal experience