$(document).ready(function () {
$(window).load(function () {
setTimeout(function(){
$('#preloader').fadeOut('slow', function () {
});
},2000); // set the time here
});
});
But you'll want to use a preloader gif or something to signify something is happening for the sake of the user.
Also, considering the template processes the python/jinja/HubL on the server side first then serves up the html/css/javascript to the client side where this would trigger, I am not entirely sure delaying the load of your thank you page would work. If you try it though please let me know.
As far as delaying the landing page from redirecting the user, you would want to hook something like this up to be triggered by the form button click but I do not know how to delay the redirect.
$(document).ready(function () {
$(window).load(function () {
setTimeout(function(){
$('#preloader').fadeOut('slow', function () {
});
},2000); // set the time here
});
});
But you'll want to use a preloader gif or something to signify something is happening for the sake of the user.
Also, considering the template processes the python/jinja/HubL on the server side first then serves up the html/css/javascript to the client side where this would trigger, I am not entirely sure delaying the load of your thank you page would work. If you try it though please let me know.
As far as delaying the landing page from redirecting the user, you would want to hook something like this up to be triggered by the form button click but I do not know how to delay the redirect.