How to auto redirect to home page on a loading page?

Is this the way → you are trying to generate a PRELOADER ???