Reduce DOM writes by only queuing elements that need updates