CF7 redirection to another page is too slow
-
Hi,
<script> document.addEventListener( 'wpcf7mailsent', function( event ) { location = 'https://example.com/'; }, false ); </script>
I understand this script redirects to another page on successful submission. However, the redirection happens only after showing the thank-you message and clearing out the existing form. There’s a delay of 2-3 seconds because of this.
Is there a possibility to speed up the process so the user is redirected as soon as the form is successfully submitted before showing the thank-you message?
- The topic ‘CF7 redirection to another page is too slow’ is closed to new replies.