Last updated 2 years ago
browser ⟩ events ⟩ client-side JS timeline
JavaScript programs begin in a script-execution phase and then transition to an event-handling phase.
JavaScript: The Definitive Guide (15.1 Web Programming Basics)
Document ⟩ "DOMContentLoaded" event
create table of contents on DOMContentLoaded.
using components - do not query web components too early.
hide components until defined
state-change events.