ticket:6 sleep only on ajax requests