Set delay on hide functions to smooth mobile rendering