Reworked dom delay.