Trying some dom optimizations.