On the client side, you can compare your script (s) with getTime()
var start = (new Date).getTime();
var diff = (new Date).getTime() - start;
alert(diff)
And let's see what exactly happens in the script. But its hard to say what can be optimized if you do not publish any code.
source
share