Featherweight Page
You'll get your home page to load in under 100 KB with the images included, and put the number in the footer to keep yourself honest.
About
Most web pages weigh 2 MB or more, and yours doesn't have to. A page of text, a stylesheet and one well-compressed image fit inside 100 KB with room to spare. This one constraint teaches more about performance than any tool, because everything you add after this, you'll weigh first. Squoosh.app does the image work in the browser for free.
At a glance
- Per requirement
- 15 XP
- Completion bonus
- 75 XP
- Requirements
- 5
- Takes
- One evening
- Skill level
- Beginner (done it a few times)
- Cost
- Free
- Supplies
- Nothing special
- Where
- At home
- Other people
- On your own
Requirements
-
1
Measure the current weight of your home page. Open the Network tab, disable the cache, reload, and read the transferred total at the bottom. Most people are surprised by the number. Take a screenshot of it. Photo
-
2
Compress every image. Resize each one to the largest size it's actually displayed at, then export it as WebP or a quality-80 JPEG. Squoosh.app does this in the browser for free and shows both sizes on one screen. A hero photo should come in under 60 KB. Take a screenshot of Squoosh with the before and after sizes. Photo
-
3
Drop every script and font you don't need. That means analytics, chat widgets, icon fonts and any jQuery you never call, and all of them can go. If you do load a web font, subset it to the characters you use. Take a screenshot of the Network tab with the remaining requests. Photo
-
4
Get the page under 100 KB transferred. Compression on the server counts toward this, and most hosts gzip or brotli your files for free. Take a screenshot of the Network tab with the total under 100 KB. Photo
-
5
Put the page weight in the footer. Add one line of text, like This page is 41 KB, using the real number from the Network tab rather than a guess. Update it whenever the page changes, because it keeps you honest. Take a screenshot of the footer with the number in it. Photo