This document discusses frontend performance and provides tips to optimize load times. It notes that Zalando saw a 0.7% revenue increase when load times were reduced by 100ms. Carousell reduced load times by 65% and saw a 63% increase in organic traffic. The document then outlines several pillars of performance like server side rendering, asset delivery, client bandwidth, and client CPU cycles. It provides recommendations under each area like writing fast code, caching content over 5 seconds old, delivering optimized and regionally distributed assets, reducing payload sizes, and offloading deferred JavaScript. Overall it emphasizes the importance of performance optimization and testing on slow devices to improve load speeds.
12. Pillars of performance
โข Server Side Rendering
โข Asset delivery
โข Client bandwidth
โข Client CPU cycles
12
13. Server side rendering
โข Write fast code
โข Cache what canโt be made fast
โข Consider stuff older than 5 sec static
โข Performance is design
โข OP-TI-MIZE
13
14. Asset delivery
โข Deliver fast
โข Deliver regionally
โข Deliver optimized
โข Really mean that!
โข OP-TI-MIZEโฆ please
14
15. 15
โ53% of visits to mobile sites are
abandoned after 3 seconds.โ
Google DoubleClick, 2018
16. Client bandwiths
โข 3G is broadband
โข Company culture: One day of 2G per month
โข Ship less HTML
โข Ship less CSS
โข Ship WAY less JS
โข OP-TI-MIZE... pretty please
16
21. Terminology
FCP: First Contentful Paint
FMP: First Meaningful Paint
TTI: Time to Interactive
PB: Performance Budget
Bloat: CSS/ JS not used in current document 21
29. โข Seriously consider system fonts
โข Remove bloat subsets
โข Remove bloat charsets
โข Make use of font-display
(swap/ optional)
7 | Webfonts
29
30. 30
โChanging the way fonts were
loaded [โฆ] resulted in the speed
index dropping by 50% for 4G
mobiles.โ
gov.uk, 2018
31. โข Lazy loading
โข Use webP
โข Optimize image size per viewport
โข dreistrom.landโs Image Rendering Service for lossless
compression and convertion to modern images formats
8 | Optimize images
31
32. โข Set HTTP Cache headers properly
โข Set HTTP security headers properly
9 | Headers
32
37. Tools for your CI/ CD infrastructure
โข https://www.sitespeed.io/
โข https://github.com/GoogleChrome/lighthouse/blob/HEAD/docs/r
eadme.md#using-programmatically
โข https://developers.google.com/web/tools/lighthouse/#cli
37