Explore
Module 1 · Part 1 of 12 · Free preview

Part 1

Chapter 1: The Empathy Engine--In 2019, a developer named Priya watched her mother struggle to load a government benefits portal on a ₹3,000 smartphone in rural Maharashtra, India. The page took forty-seven seconds to become interactive. Her mother assumed the website was broken. She closed the tab and walked to a government office four kilometers away.That website was built by a team of twelve engineers using React, Redux, and three analytics libraries. They tested exclusively on MacBook Pros connected to a corporate fiber line. Their Lighthouse score was ninety-eight. They had never once simulated 2G.This book exists because of that gap. The gap between how we test and how the world connects.

The gap between a ninety-eight Lighthouse score on fiber and a forty-seven-second Time-to-Interactive on a two-hundred-dollar phone. The gap between what we think is fast and what is actually usable.The Performance DelusionHere is an uncomfortable truth that the performance industry has danced around for a decade: most JavaScript optimization advice is written by and for developers who have never experienced their own product on a slow network.We measure. We profile. We split bundles and defer scripts and compress assets. And then we declare victory when our simulated 3G test finishes in three seconds on an iPhone fourteen Pro. But simulation is not reality.

Throttling your MacBook's network connection to 150 kilobits per second does not replicate the experience of a low-end ARM processor struggling to parse two megabytes of JavaScript while competing with background processes and thermal throttling.The average webpage today weighs over two megabytes. That is forty times larger than the average page in the year 2000, when the majority of home internet connections ran at fifty-six kilobits per second. We have used every speed increase of the past two decades—broadband, 3G, 4G, 5G—as permission to add more code, more frameworks, more dependencies, more everything. We have traded efficiency for convenience and called it progress.But here is the catch: the world did not upgrade uniformly.The Two WorldsAt the same time that Silicon Valley was celebrating the arrival of 5G, the International Telecommunication Union released a report showing that nearly forty percent of the global population still lacks access to reliable broadband internet.

Keep reading — free

Sign in with your SamEnrico account to read the whole of lesson 1.

Sign in