Quiz - How a request becomes a page
A user reloads a page they visited five minutes ago on the same browser session. The first document request to the same origin uses HTTP/3 and a session ticket is still cached. Roughly how many network round trips elapse between the browser opening the connection and the first byte of the response body arriving?
An engineer is animating a card sliding in from the right. They have two equivalent-looking implementations: animating transform: translateX(...) from -100% to 0, or animating left from -100% to 0. Why does the transform version stay smooth at 60fps even when the main thread is busy, while the left version stutters?
transform runs on the GPU while left runs on the CPU, and the GPU is faster.transform directly to an existing layer without re-running layout or paint; animating left invalidates layout every frame and forces main-thread work.transform is hardware-accelerated by the browser; left is a legacy property that the modern rendering pipeline doesn’t optimize.transform and opacity are the compositor-only properties — the compositor thread combines layers into the final frame on its own thread, separate from the main thread that handles layout and paint. Changing transform shifts a layer’s position without touching either stage. Animating left is a geometry change, which invalidates layout; the main thread has to recompute layout, repaint, and only then can the compositor produce a frame. The moment the main thread misses the 16.7ms budget for one frame, the animation visibly stutters. “GPU vs CPU” is the wrong-but-tempting framing — both end up on the GPU eventually; the difference is which pipeline stages have to run first.A teammate hand-rolls a self-signed certificate for localhost with openssl req, configures the dev server to use it, and visits https://localhost:3000. The browser shows “your connection is not private.” They try the same workflow with mkcert localhost 127.0.0.1 ::1 (after running mkcert -install once) and the green padlock appears. What does mkcert do that hand-rolled self-signing doesn’t?
mkcert uses TLS 1.3 cipher suites that browsers accept; openssl defaults to deprecated TLS 1.2 ones that browsers refuse.mkcert generates a local Certificate Authority and installs its root into the OS (and Firefox) trust store, then signs the leaf cert with that root — so the chain terminates at a CA the browser already trusts.mkcert registers the certificate with Let’s Encrypt’s local development service, which the browser auto-trusts on localhost.mkcert -install plants a local root CA in the OS trust store (and Firefox’s separate store); mkcert localhost 127.0.0.1 ::1 then issues a leaf signed by that local root. The chain now terminates at a CA the trust store recognizes, so validation succeeds. The trust is real, and it’s also local — only your machine knows the local root, which is exactly the safety property you want.Pick the panels you would open first for each of the situations below. Select all that apply.
SameSite and Secure attributes.console.trace() to find who issued the request.SameSite, Secure, HttpOnly) cause auth bugs that look like the cookie just isn’t there. Network is where you read what the server actually returned and check cache headers. The 401 scenario is also a Network question — you want to see the response and the request headers, not who in the client called fetch. Reaching for console.trace() first is the junior reflex; the senior reflex is to start at what the server sent back.Quiz complete
Score by topic