This script is typically useful if you have a server side process that takes some time. Instead of showing a blank page while the server is working, show a progress bar which indicates that something is comming.
This requires of course that you could output content to the browser while your server side script is working. In PHP, you might have to use ob_implisit_flush() for this to happen.