niroshana35,
You can do this, by using a javascript such as this one I havn't used this one personally, but you effectively turn on the animation / prompt then onload remove it.
Although - taking a look at the actual scripts method of validating URL's may help, you may be able to increase the speed by using cURL (if it doesn't already).
Of course, cURL would have to be available on your system as well.