Fast on 3G
You'll set a performance budget and get every page usable in under three seconds on a slow phone connection.
About
Fast sites are a courtesy, because most of the world is on a slow connection some of the time. The usual culprits are one 3 MB hero image, a font file that blocks the text, and a third-party script nobody reads. You'll set a budget, measure against it, and cut. That means responsive images, proper caching, fonts that don't block, and no third parties at all. A personal site is small enough that it can be fast on any connection.
At a glance
- Per requirement
- 35 XP
- Completion bonus
- 300 XP
- Requirements
- 6
- Takes
- Three weeks
- Skill level
- Intermediate (months of practice)
- Cost
- Free
- Supplies
- Nothing special
- Where
- At home
- Other people
- On your own
Requirements
-
1
Set a performance budget and write it down. Pick a number for page weight, request count and time to interactive on Slow 3G. Something like 200 KB, 15 requests and 3 seconds is a fair place to start. Take a screenshot of the budget in your README. Photo
-
2
Serve responsive images with srcset and modern formats. Give each image three sizes, serve WebP or AVIF with a JPEG fallback in a picture element, add width and height attributes to stop layout shift, and use loading="lazy" for anything below the fold. Take a screenshot of one picture element. Photo
-
3
Stop your fonts from blocking rendering. Self-host, subset, preload the one file you need, and use font-display: swap. Or use system fonts and skip the problem entirely. Take a screenshot of the font request in the Network tab with its size. Photo
-
4
Set cache headers on your static assets. Set a year for hashed files and something short, like an hour, for HTML. Your host's config or a headers file does this. Take a screenshot of the response headers showing Cache-Control. Photo
-
5
Remove every third-party request. Analytics, fonts from Google, embeds and CDNs all count, and each one is a connection to a server you don't control. Take a screenshot of the Network tab showing requests only to your own domain. Photo
-
6
Hit your budget on every page and show the numbers. Run Lighthouse on mobile and WebPageTest on a Slow 3G profile for your three heaviest pages. Take a screenshot of the results next to your budget. Photo