How to use jQuery ajax reload the page that the user doesn’t know is the page being reloaded?

Ask A Question

Login To post a question

I used some source on StackOverflow, but I still see the page being loaded (on the tab) when I use ajax.
I want to use ajax to reload the page without the user knowing that the page is being reloaded.

success: function(data){
   if(data.success == true){ // if true (1)
      setTimeout(function(){// wait for 5 secs(2)
           location.reload(); // then reload the page.(3)
      }, 5000); 


For more info please click here

Have a question or need a custom quote?