Shelves / The Web Frontend
Software Engineering · Volume 2
The Web Frontend
Part II of the Software Engineering roadmap, written out as a textbook that starts from zero. The opening chapter assumes you have never built a web page; every later chapter opens with a plain-language Start here section, then goes all the way to browser internals, framework design and production practice, and ends with a lab of real measurements and a revision sheet. Wherever it clarifies an idea, the browser model is compared with Java, Go, Rust, C++, C and Zig.
Two ways to read this book
Every chapter has the same shape: Start here (first principles, plain language, small verified examples) → How deep to go (what each mastery level needs) → full-depth sections → Lab (experiments run in a real Chromium and Node, with measured output) → Revision sheet (key ideas, numbers to remember, pitfalls, glossary, quiz).
How to use this book
- Read one topic at a time. Each topic heading has a Done tick. Tick it only when you can explain the idea aloud without looking, which is roughly mastery level L2–L3 below.
- Run the code. Every comparison block has tabs for each language; type the example out in at least two of them.
- Take the chapter quiz at the end. A score of 80% or more counts as passed. Wrong answers show the explanation, so re-read that topic and untick it if needed.
- Revisit after a delay. The roadmap's loop applies: recall, explain, implement without notes, break it, measure it.
Mastery levels
Languages used throughout
Examples target evergreen browsers as of late 2026, ES2025, TypeScript 6–7, React 19, Angular 22, and Node 22/24 LTS. Labs were run in Chromium 153 with Playwright 1.64-era tooling. Where a feature is new, the text says so. Check caniuse.com or MDN's Baseline status before relying on it for older browsers.
Contents
- FE·00Start Here: How the Web WorksFor readers who have never built a web page: what happens when you open a website, what HTML, CSS and JavaScript each do, the tools you need, your…14 min
- FE·12The Web PlatformThe core concepts every other frontend chapter builds on: URLs, origins, browsing contexts, documents, navigation, resource loading, the DOM, CSSOM…29 min
- FE·13HTMLHTML as a structure and semantics language: document anatomy, the core elements, semantic meaning and content models, forms end to end, and how…38 min
- FE·14CSSCSS from the cascade up: selectors, specificity, inheritance, layers, values and units, the layout algorithms (flow, flexbox, grid, positioning…46 min
- FE·15JavaScriptThe language and its runtime: values and types, scope and closures, prototypes and classes, asynchronous programming, the event loop in detail, and…56 min
- FE·16TypeScriptA structural type system layered on JavaScript: primitives, interfaces, unions, narrowing, generics, and type-level programming (keyof, mapped…40 min
- FE·17DOM & Browser APIsWorking with the live document and the platform's built-in APIs: traversal, events and delegation, the four observers, fetch and URLs, history…37 min
- FE·18Browser InternalsWhat happens between typing a URL and seeing pixels: the multi-process architecture, sandboxing and site isolation, and the rendering pipeline…26 min
- FE·19Frontend NetworkingHTTP as the browser sees it: HTTP/1.1, HTTP/2, HTTP/3 and QUIC; caching and validators; cookies; the same-origin policy, CORS and preflights…31 min
- FE·20AccessibilityBuilding interfaces everyone can use: WCAG and POUR, semantics and accessible names, keyboard and focus, screen readers, contrast, reflow, zoom and…33 min
- FE·21UI ArchitectureOrganising frontend code so it can grow: component boundaries, composition, primitives, compound and headless components, design systems and tokens…30 min
- FE·22ReactReact from its mental model up: components, JSX, props, state, events, lists and keys; every core hook; the render–reconcile–commit cycle; and modern…42 min
- FE·23AngularAngular as a complete framework: components, templates and control flow, directives and pipes, dependency injection (compared with Spring), services…35 min
- FE·24Full-stack FrameworksRendering strategies (CSR, SSR, SSG, ISR, streaming, partial rendering, islands, server components, edge) and the frameworks that implement them…28 min
- FE·25State ManagementClassify state before choosing tools: local, server, URL, form, session, global, persistent and derived state. Then Context, reducers, Redux…28 min
- FE·26Frontend TestingBuilding confidence in UI code: the testing trophy, unit, component, integration and E2E tests, visual regression, accessibility and performance…31 min
- FE·27Frontend PerformanceMeasuring and improving what users feel: Core Web Vitals (LCP, INP, CLS) and FCP/TTFB, long tasks, JavaScript cost, code splitting, tree shaking…30 min
- FE·28Frontend SecurityThe browser-side attack surface and its defences: XSS and DOM XSS, CSRF, clickjacking, CSP, CORS, Trusted Types, prototype pollution, open redirects…33 min
- FE·29PWAs, Workers & WebAssemblyMaking web apps installable, offline-capable and fast: service worker lifecycle and caching strategies, background sync, push, IndexedDB, the web app…32 min
- FE·30Build Tooling & MonoreposHow frontend code becomes deployable assets: package managers and lockfiles, workspaces, ESM versus CommonJS and package exports, bundlers (Vite…27 min
- FE·31Frontend DeploymentGetting frontends to users: static hosting and object storage, CDNs, SPA fallback, SSR hosting on Node, serverless and edge runtimes, Docker and…23 min
- FE·32Frontend ObservabilitySeeing what happens in users' browsers: error tracking and source maps, real-user monitoring and Web Vitals, structured logs, distributed traces from…26 min
- FE·33Frontend ProjectsEight build-it-yourself projects that grow one product, a tiffin-ordering app, from a static page to a monitored production PWA: what each teaches, a…7 min