In short: only updating when needed, minimizing the number of DOM queries, and avoiding costly CSS layouts.