Events and Event Delegation
How a click travels through the DOM, why one listener can serve a thousand elements, and the keyboard events that inline handlers always forget.
The document object model the browser builds from markup.
4 notes tagged
How a click travels through the DOM, why one listener can serve a thousand elements, and the keyboard events that inline handlers always forget.
querySelector, classList, dataset and the methods that actually get used. The small set of DOM operations that covers most day to day work.
Your file is text. The DOM is the live tree the browser built from it, and they are not the same thing. Knowing the difference is what makes debugging...
Parsing, the DOM, style matching, layout and paint. Knowing this pipeline explains why script placement matters, why images need dimensions, and why b...