set timeout method for showing spinner
use wait for images plugin to hide spinner