don't refresh the page until the server is ready.