📄 Article
Free
Intermediate
Why we picked it Every kilobyte of JavaScript costs far more on a cheap phone than on your machine, because the phone has to download it and then grind through parsing it on a weak CPU. Osmani shows the 2 to 5x difference in parse time between a flagship and an average phone, and gives concrete ways to ship less. This is the case for keeping your app light, backed by measurements rather than opinion.
The Cost Of JavaScript
From Addy Osmani (Dev Channel, Medium) by Addy Osmani 20 min read
- Download size and CPU parse time both punish low end devices twice over
- Ship less code first, then defer and split what remains
- Measure on a real budget phone, not on your dev machine