You are already implementing this in the correct way, you just have your redirect too far down on the page. You should move the redirect code so that it is in the head above any other script or image preloading, it can be the first thing in the head. This way the page will not load up then redirect, instead the user will click the link, the form page will attempt to load but before anything is displayed on the page at all it will go to the download page.