Kayavak / The Web Frontend / FE·33 Frontend Projects / Deeper
Deeper · The Web Frontend
Frontend Projects
The questions the chapter doesn't stop for: why this exists, the model to keep in your head, what changes when an assumption does, how sure we are of each claim, and what's still open. Read it after the chapter; back to the chapter.
Why does this exist?
Frontend work is where every earlier chapter meets one person's screen: HTML's meaning, CSS's layout, JavaScript's event loop, the network, accessibility, performance and security all show up in a single feature. Chapters teach them one at a time; real products need them at once, under constraints (a slow phone, a screen reader, a flaky network, a deadline). These projects exist to practise that combination, the way architecture students build models and medical students practise on cases.
The mental model
Try it yourself first: write your own model in the Mental Model Explorer, then compare.
A frontend project is judged by the person using it, on their device, not by the code. Build the smallest version that works for everyone, measure it on a slow device, then extend.
| Question | Answer |
|---|---|
| What is it? | Complete small apps that combine the volume's chapters |
| Problem it solves | Turning separate knowledge (CSS here, caching there) into the ability to ship a working interface |
| Parts | Semantic markup, layout, state, data fetching, accessibility, performance budget, tests, deployment |
| How it works | Define what "done" means (including keyboard use and a load-time budget) before building; check each on real conditions |
| Assumptions | You test with a keyboard, a screen reader and a throttled network, not only your own setup |
| When they change | Features that work on your laptop fail for the users most likely to struggle |
| Where it fails | Projects that grow without measuring end up slow and inaccessible by accumulation |
| Related ideas | Every chapter in this volume; the TiffinBox build's frontend stages |
What if?
What if you added accessibility at the end?
Reason it through, then open
You'd find custom widgets with no keyboard support, focus lost on every route change, colour-only states and missing labels, each needing changes to components already used everywhere. Built in from the start (native elements, a focus plan, contrast tokens), most of that work never exists. Retrofitting usually costs more than doing it first.
What if you never tested on a slow phone?
Reason it through, then open
Your app's JavaScript would be parsed and run several times faster on your machine than on a median phone, so you'd never see the long tasks that make it feel broken for many users. Throttling in DevTools, or an inexpensive phone kept for testing, turns those hidden costs into visible ones.
Where the boundary is
| Aspect | It works | It's done |
|---|---|---|
| Checked with | Your browser, your mouse, your Wi-Fi | Keyboard, screen reader, slow network and device, tests, a deployed URL |
| Covers | The happy path | Errors, empty states, loading, offline |
| Who it serves | You | Everyone who'll use it |
How sure are we?
| Claim | How it's known | Where from |
|---|---|---|
| Accessibility retrofits cost more than building it in | Model | Widely reported in practice; varies with the product |
| Median phones run JavaScript several times slower than developer laptops | Measured | Published device benchmarks and the volume's performance chapter |
| Practising combined skills transfers better than isolated drills | Active research | Supported by studies of interleaved and whole-task practice; strength varies |
Still open
How much frontend work AI coding tools will absorb is unclear, but projects test judgement the tools don't supply: whether an interface is usable by everyone, fast on cheap devices and safe with untrusted data.
What would change your mind? If the projects felt easy, they're too small: add a constraint (offline, a second language, a 100 KB JavaScript budget) until they don't.
Recall
What should "done" include for a frontend feature?
Keyboard and screen-reader use, error, empty and loading states, a slow-device check, tests and a deployment.
Why test on a slow phone or with throttling?
Developer machines hide JavaScript costs that make apps feel broken on median devices.
Why build accessibility in from the start?
Retrofitting means changing components already used everywhere; native elements and a focus plan avoid most of it.
Reflect
Be honest with yourself; this stays in your browser. Anything you can't tick yet is what to revisit.