Track 02 of 10Inside the browser

Track 02 of 10

Inside the browser

Events from click to React, the event loop, rendering, Core Web Vitals, caching and working offline.

17 lessons · about 112 minutes

  1. Events and bubblingOne click travels down to its target and bubbles back up. Watch every listener hear it.7 min
  2. What fires when you click or typeOne click is a whole sequence of events. Record them and open each event object.7 min
  3. Keyboard, input and focus eventskey versus code, input versus change, focus versus focusin.7 min
  4. Default actions and preventDefault()Links navigate, forms submit, checkboxes tick. Turn each one off and see what happens.6 min
  5. Event delegationOne listener on the list instead of one per item, and the classic bug it fixes.6 min
  6. Listener options and cleanuponce, passive and AbortController: listeners that clean up after themselves.7 min
  7. Custom eventsAnnounce “added to cart” and let any part of the page listen.5 min
  8. Debounce and throttleFewer requests, same result. Type fast and count them.6 min
  9. Events in ReactSynthetic events, onChange on every keystroke, and the onClick mistake everyone makes once.6 min
  10. The event loopCall stack, microtasks and tasks. Guess the output, then step through.9 min
  11. Don't block the main threadFreeze this page on purpose, then do the same work without freezing it.6 min
  12. The rendering pipelineStyle, layout, paint, composite: what each CSS change costs per frame.6 min
  13. Core Web VitalsLCP, INP and CLS. Try to click the button before the ad lands.7 min
  14. HTTP cachingCache-Control, ETags and hashed file names. Deploy and see what users get.8 min
  15. Responsive designOne page, every screen. Drag across the breakpoints and break the viewport tag.6 min
  16. SEO basicsTitles, descriptions and share cards: the back cover of every page.6 min
  17. Service workers and offlineCache first, network first, stale while revalidate. Try each one offline.7 min