Most teams add dependencies without asking "Can we afford this?"


Most teams add dependencies without asking "Can we afford this?".

Instead, set a performance budget. How small? This post argues that you should limit your app's initial page load to just 170K gzipped! 🗜

https://infrequently.org/2017/10/can-you-afford-it-real-world-web-performance-budgets/

#javascript
Why 170K?

Because for these real world conditions:
A slow 3G network: 400ms round trip, 400Kbps transfer.
An "average" $200 Android phone.

You get this performance:
Time to interactive under 5 seconds for first load
Time to interactive under 2 seconds for subsequent loads
Oh and as usual, context matters. Example: Our corporate style guide site is 500k gzipped. That’s okay to me since it’s only used internally by people on desktops with a fast corporate LAN. But for a typical corp website or product app, perf matters.

View original on X