Cutting down DOM interactions