← All lessons
Web
21 lessons you click through step by step
- How HTTP requests workBuild a request from method, path, headers and body, send it and read the status code that comes back
- How Content Security Policy worksSend a CSP header, watch it block an injected script, and see why the nonce changes every time
- How a browser renders a pageTurn HTML and CSS into trees, boxes and pixels, then see what a reflow really costs
- How service workers workPut a worker between the page and the network, cache what matters, then keep working offline
- How server-side rendering worksCompare CSR, SSR and static pages by what the browser gets and when the content shows up
- How hydration worksPaint server HTML, load the JavaScript, then attach handlers to a button that only looked ready
- How lazy loading worksLoad images as they near the screen, split code with import(), and count the bytes you save
- How Web Workers workMove heavy work off the main thread, pass messages, and keep the page smooth
- How UTF-8 worksTurn code points into 1 to 4 bytes, then see why a string's length depends on who counts
- How base64 worksTurn every 3 bytes into 4 characters, pad the rest, and keep tokens safe in a URL
- How a WebView worksPut a web page in a native app and message across
- How DNS worksFollow a domain lookup to its name server, then cache it
- How HTTP caching worksReuse a file while it's fresh, then revalidate with an ETag
- How CORS worksGet blocked calling another origin, then let the server allow it
- How cookies and sessions workLog in and watch the browser send your session cookie back
- How OAuth login worksSign in with another site and trade a code for a token
- How XSS worksPost a comment that runs a script, then escape it
- How CSRF worksVisit a trap page that acts as you, then block it
- How webhooks workLet a service call you, then verify its signature
- How WebSockets workTurn one request into a line that talks both ways
- How HTTPS worksSend a password over HTTP and HTTPS, then fake a certificate