jQuery waitingFor Plugin Demos
Basic
custom
With Callback