The claim that React is fast because of the virtual DOM has the causation backwards. Rendering a component tree into a JavaScript object graph and diffing it against…
Appending 400 rows to a table one at a time makes the browser invalidate layout after each insertion, because each one changes a tree that is still being…
An off-canvas menu animated with left stutters on a phone and the same menu animated with transform does not. The usual explanation — “it uses the GPU” —…
$.ajax takes success and error options, so most code passes callbacks in and stops there. It also returns a jqXHR, which has implemented the Deferred interface since 1.5…
Delegating to document is the version of event delegation that always works, so it becomes the default. Thirty handlers later, every click anywhere on the page walks the…