Also, we should generally try to only invalide the DOM inside update(), that way we are limited to one invalidation per frame.